Sunday, November 14, 2010

How to install jdk on windows

Go to Start-->Run and type "cmd"

Command prompt window will open, then type "java -verion"

If you see " Java is not recognized as an internal or external command" message, then you need to install JDK.

Download the file from http://www.oracle.com/technetwork/java/index.html
Click on "Java SE"
Then, click on "Download JDK"
Enter Sun online account info in the next screen, create one account if you don't have a sun online account.

Once download is complete, unzip the file. and copy the file in C:\Program Files\java.Now, copy the bin directory path.
We need to add  bin directory path to system environment variables path.

right click on My computer and select properties-->Advanced-->environment variables-->System variable--> select path and click on edit.
Add jdk bin path to as shown in below image.
Click "Ok".
Now, Restart the machine and open command prompt and enter "java -version".
You should see similar message as below.

No comments:

Post a Comment