Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

http://ubuntuforums.org/showthread.php?

p=11271927#post11271927

The variable Java Home, generally written as JAVA_HOME is set to the install pat h of Java. Steps to set JAVA_HOME in Windows and Linux are as follows: Steps For Windows 1 Assuming that the path for the Java Development Kit (JDK) during installatio n is not changed, it will be in a directory under C:\Program Files\Java. This pa th 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. Ads by Google 2X ApplicationServer XG Free & secure application & desktop delivery to any operating system. www.2x.com/applicationserver/ 2 Setting JAVA_HOME using "My Computer": Right click on the My Computer icon on your desktop and select propertie s Click Click Under Enter Enter .6.0_06" Click OK Click Apply Changes Restart the computer to make sure the changes are reflected. 3 Setting JAVA_HOME using command prompt Open command prompt 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. For Linux 1 To set the JAVA_HOME we use .bash_profile which is a start-up script. This p articular file is used for commands which runs when the normal user logs in. The steps to set JAVA_HOME are: Login to your account and open .bash_profile file $ vi ~/.bash_profile If your path is set to /usr/java/jdk1.6.0_06/bin/java, set JAVA_HOME as follows: export JAVA_HOME=/usr/java/jdk1.6.0_06 /bin/java Save and close the file. Logout and login back to see new changes. the Advanced Tab the Environment Variables button System Variable, click New the variable name as JAVA_HOME the variable value as the install path "C:\Program Files\Java\jdk1

You might also like