Most of the software are in need of java runtime environment to run the software with any malfunctions.So Do you want to set Java Path? lets begin with simple steps,You need to copy the path of your java bin folder.
Once you copy the file,then right click the My Computer and go to properties
Now you can able to see the new prompt,select Advance system settings option!
The newly displayed prompt must have an Advanced option,select the option and you can able to see the "Environment Variable".
Once your selected the option! it will open another window with the Option of Use Variable for Welcome and System Variable,Select Use Variable for Welcome and click the Add button Now you need to type the variable name as PATH and variable value is the path you have been copied from your C-Drive.
Now it's time to click the OK button to set the variable value for Your System.Do you want to set the JAVA_HOME also? then you need to follow this instructions also.
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.
Once you copy the file,then right click the My Computer and go to properties
Now you can able to see the new prompt,select Advance system settings option!
The newly displayed prompt must have an Advanced option,select the option and you can able to see the "Environment Variable".
Once your selected the option! it will open another window with the Option of Use Variable for Welcome and System Variable,Select Use Variable for Welcome and click the Add button Now you need to type the variable name as PATH and variable value is the path you have been copied from your C-Drive.
Now it's time to click the OK button to set the variable value for Your System.Do you want to set the JAVA_HOME also? then you need to follow this instructions also.
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.
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.
Setting
JAVA_HOME using "My Computer":
Right
click on the My Computer icon on your desktop and select properties
Click the Advanced Tab
Click the Environment Variables button
Under System Variable, click New
Enter the variable name as JAVA_HOME
Enter the variable value as the install path
"C:\Program Files\Java\jdk1.6.0_06"
- Click OK
- Click Apply Changes
- Restart the computer to make sure the changes are reflected.
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
and press enter
The JAVA_HOME is set
For Linux
To set
the JAVA_HOME we use .bash_profile which is a start-up script. This particular 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.
No comments:
Post a Comment