Blog is under construction. Blog is under construction.

Me on Flickr

Friday, 13 July 2012

Installing JDK on Windows


Installing JDK on Windows


If you want to write and run a program the you will need a development kit. This compiles your source code and run the app. In Java, the tool is called Java Development KIT (JDK). This KIT contains the tools for compiling, running, packaging and etc.

What should know before get into details: Difference between JRE and JDK?
If you want to write and run a program then you will need a development kit. This compiles your source code and run the application. In Java, the tool is called Java Development KIT (JDK). This JDK contains the tools for compiling, running, packaging and etc.
JRE is the Java Runtime Environment. This contain the tool for running the Java application (not for developing). A user, other than a developer, who is going to run a Java program can use JRE. No need to get JDK as the user is not going to develop a program.

Where to download JDK?


SUN has a long list of versions of JDK that they have released so far. you can select the java version and the operating system on which you plan to use ( e.g.: JDK 1.5, Windows 32bit) .
Download it to your local machine. If you cannot find the one you want in the listing then look for the previous releases and download it. Once you download, execute the exe file with default option, it will install everything you.

Once it is installed, open the command prompt (Start ->Run->Type 'cmd' and press 'OK') and type java. You will get a list of options for command 'java' and that indicates that you installed JDK successfully. If you do not see the options listed, then that means the Java path is not in the system environment and you need to set it.

How to set system environment variable

·         Let's assume it is installed in the folder "C:/tools/jdk1.5"
·         Right click on the My Computer icon on your desktop and select properties
·         Click the Advanced Tab
·         Click the Environment Variables button
·         Under System Variable, select "Path" and click "edit"
·         Append ;C:/tools/jdk1.5/bin at the end of the value of "Path"
·         Click OK
·         Click Apply Change
Now open the command prompt again (Start ->Run->Type 'cmd' and press 'OK') and type java. You will get a list of options for command 'java'.

Video for installing JDK


 

Thursday, 5 July 2012

What is JAVA?



What Is Java?

Java is a computer programming language. It enables programmers to write computer instructions using English based commands, instead of having to write in numeric codes. It’s known as a “high-level” language because it can be read and written easily by humans. Like English, Java has a set of rules that determine how the instructions are written. These rules are known as its “syntax”. Once a program has been written, the high-level instructions are translated into numeric codes that computers can understand and execute.


Who Created Java?



In the early nineties, Java was created by a team led by James Gosling for Sun Microsystems. It was originally designed for use on digital mobile devices, such as cell phones. However, when Java 1.0 was released to the public in 1996, its main focus had shifted to use on the Internet. It provided more interactivity with users by giving developers a way to produce animated webpages . Over the years it has evolved as a successful language for use both on and off the Internet. A decade later, it’s still an extremely popular language with over 6.5million developers worldwide.


Why Choose Java?

Java was designed with a few key principles in mind:

Easy to Use: The fundamentals of Java came from a programming language called c++. Although c++ is a powerful language, it was felt to be too complex in its syntax, and inadequate for all of Java's requirements. Java built on, and improved the ideas of c++, to provide a programming language that was powerful and simple to use.

Reliability: Java needed to reduce the likelihood of fatal errors from programmer mistakes. With this in mind, object-oriented programming was introduced. Once data and its manipulation were packaged together in one place, it increased Java’s robustness.

Secure: As Java was originally targeting mobile devices that would be exchanging data over networks, it was built to include a high level of security. Java is probably the most secure programming language to date.

Platform Independent: Programs needed to work regardless of the machine they were being executed on. Java was written to be a portable language that doesn't care about the operating system or the hardware of the computer.
The team at Sun Microsystems were successful in combining these key principles, and Java's popularity can be traced to it being a robust, secure, easy to use, and portable language.


Where Do I Start?

To start programming in Java, all you need to do is   the Java development Kit.


Related Posts Plugin for WordPress, Blogger...