Tuesday, June 4, 2013

Download and Installation of Java

Hi guys,

You can get java software(jdk i.e. java development kit) from:: http://java.com/en/download/index.jsp

Java is free, robust, platform independent. That's why many people show their interest in java.

Java installation is little complicated. So, it may help you.

After downloading and installing the jdk, you have to go to Java installed folder from program files, there you will find jdk 1.7.0/1.6 then go to bin folder of jdk; and copy this path("C:\Program Files\Java\jdk1.7.0\bin"). Then you have to go to My Computer->System properties->Advanced System Settings->Environment Variables->User Variable->New
After that you have to set a variable name and variable value. Variable name should be: path/PATH and variable value will be:: C:\Program Files\Java\jdk1.7.0\bin and place a ; after the variable value.



This is required because this settings help us to compile and run java programs from anywhere in our computer, otherwise we have to place the .java files into bin folder of jdk.

To compile java file: javac filename.java
To run java file: java filename

No comments:

Post a Comment