Thursday, September 11, 2014

SET JAVA HOME

  • 86,933 views
  • 6 Editors
  • Edited 14 weeks ago
Do you want to set Java Home? The variable Java Home, generally written as JAVA_HOME, is set to the install path of Java. Learning how to set JAVA_HOME in Windows and Linux isn't hard to do.

  1. 1
    Assuming that the path for the Java Development Kit (JDK) during installation is not changed, it will be in a directory under C:\Program Files\Java. This path will have the JDK, let's assume it has jdk1.6.0_06. So the install path is C:\Program Files\Java\jdk1.5.0_08. Set Java Home Step 1.jpg
  2. 2
    Setting JAVA_HOME using "My Computer":
    1. Right click on the My Computer icon on your desktop and select properties
      Set Java Home Step 2Bullet1.jpg
    2. Click the Advanced Tab
      Set Java Home Step 2Bullet2.jpg
    3. Click the Environment Variables button
      Set Java Home Step 2Bullet3.jpg
    4. Under System Variable, click New

      Set Java Home Step 2Bullet4.jpg
    5. Enter the variable name as JAVA_HOME

      Set Java Home Step 2Bullet5.jpg
    6. Enter the variable value as the install path "C:\Program Files\Java\jdk1.6.0_06"

      Set Java Home Step 2Bullet5.jpg
    7. Click OK
    8. Click Apply Changes
    9. Restart the computer to make sure the changes are reflected.
  3. 3
    Setting JAVA_HOME using command prompt
    1. Open command prompt
    2. Type the following in the command prompt
      set JAVA_HOME = C:
    \Program Files\Java\jdk1.6.0_06
    and press enter
    The JAVA_HOME is set.

Unknown

Author & Editor

Tôi thực dụng lãng mạng. Yêu thích những công việc sáng tạo.

0 nhận xét:

Post a Comment

 
biz.