Search This Blog

Monday, September 30, 2013

Set JAVA_HOME variable in Windows



 Find Install Directory

Look for the install path for the Java or Software Development Kit(SDK), to find the installation path do the following:
  1. JDK (Java Development Kit) during default installation, are kept in a directory under C:\Program Files\Java. If it is not there we need to find it on the system.
  2. At the path, there will be a sub-directory like jdk1.6.0_03.

    So, the installation path is  C:\Program Files\Java\jdk1.6.0_08.

 Apply Setting

Once you have found the JDK (Java Development Kit) install path:
  1. Right click on the "My Computer" icon on your desktop and select "Properties".
  2. Click the "Advanced" Tab
  3. Click the "Environment Variables" button
  4. In the  "System Variable" tab, click "New"
  5. Enter the variable name as "JAVA_HOME"
  6. Enter the value as the installation path for the Development Kit
  7. Click "OK" button.
  8. Click "Apply" Changes 

  Check JAVA installation

  1. Click on the "Start" button.
  2. Type in "cmd" in the search bar. Press "Enter" button on the keyboard.
  3. The command prompt must open up. Enter the command "java-version" in it.
  4. It must come up with the java details installed on the system.

No comments:

Post a Comment

My Blog List