Monday, August 19, 2013

How To Install & Configure Java JDK On Your Computer?


How To Install & Configure Java JDK On Your Computer?

How to enable your computer for java programming?

First,download Java Development Kit(JDK) form one of the following addresses-


Double click the downloaded file(in our example,it should be named as  jdk-7u6-windows-i586.exe) and follow the installation process,there will be two installations,one for the JDK, another is JRE(Java Runtime Environment).

After the installation,go to Command Prompt by pressing Windows Key+R. Type java -version and hit enter,it'll show interpreter's version. Then type javac -version and hit enter. If the javac command completed successfully then you don't have to follow the steps below. But,if you get an error like this-  'javac' is not recognized as an internal or external command,operable program or batch file ,then do the following-

Go to Start -> Control Panel -> System -> Advanced System Settings -> Environment Variables, select the system varable named "Path" and click the Edit button. Add the address of java's bin sub-directory at the end of the list in the Variable Value field(in our example C:\Program Files\Java\jdk1.7.0_06\bin) then click the ok button.



To test the environment open command prompt by pressing Windows Key+R.
Type java -version and hit enter to see interpreter's version number.
And type javac -version and hit enter to see compiler's version number.
Both the versions should match. If it matches,you're ready to do java programming!

Note: Other than java programming,if you install the jdk,you'll be able to run java-archives(i.e .jar files) on your computer! There are plenty of java applets(small applications) are available on the internet for free! Also java is needed for surfing various internet sites.

That's all!

If you like my article,please join my blog by "Join This Blog" option at the top right section of this blog.

Thanks for reading!

0 comments:

Post a Comment

 

Popular Posts

Popular Posts