Saturday, June 7, 2008

Java environment setup

As of this writing, Java 6 update 6 is the latest version. You can find it here.
Execute it and follow the instructions to install it.

First, Set up JAVA_HOME environment variable pointing to JDK directory. By default, on windows, its going to be C:\Program Files\Java\jdk1.6.0_06. You can set it up ..

My Computer (Right Click) -> Properties -> Advanced -> Environment Variables -> New and then set up variable name and value. Here is the snap shot..



Same way extend the PATH variable with the bin directory of jdk.

My Computer (Right Click) -> Properties -> Advanced -> Environment Variables -> Path and then EDIT. Add ";C:\Program Files\Java\jdk1.6.0_06\bin" at the end of the path value.

Also, you can extend the path as shown below, but its just temporary for that session.


set PATH=%PATH%;"C:\Program Files\Java\jdk1.6.0_06\bin"


To verify successful installation, open new command line window and type "javac -version" and "java -version".

Get back to Developer Digest