Tuesday, October 12, 2010

How to setup JAVA_HOME environment variable on Windows 7

Please follow the instructions to set up JAVA_HOME environment variable in your Windows 7 PC. First find out the installation folder of Java development kit (JDK) in your machine.Let's assume it is installed in the folder "C:/jdk6"

  1. Go to Control Panel 
  2. If Control Panel is viewed by Category then select "System & Security " and here select "System" link,otherwise System link is directly inside Control Panel.
  3. On System screen select "Advanced system setting" link in left panel. This will open "System Properties" dialog box with "Advanced" tab preselcted.
  4. Click the Environment Variables button
  5. Under System Variable, click New
  6. Enter the variable name as JAVA_HOME
  7. Enter the variable value as the install path for the Development Kit.  (Eg. C:/jdk6)
  8. Click OK
  9. Click Apply Changes

No comments: