Use The PATH variable is a list of directories where the system looks for commands when trying to execute them. To make use of the tools provided by JDK, the directory containing Java executables has to be added to the system PATH variable. This is essential for launching the installation procedure. Procedure The PATH variable has to be set through the system environment variable. To set the PATH variable:
- Go to etc/ and open profile in any text editor.
- Go to the end of the profile file and add the commands as shown in step 3.
- Add the System variable JAVA_HOME by writing:
JAVA_HOME=/Your Java directory here
export JAVA_HOME - Add the System variable PATH and add %JAVA_HOME%\bin to the PATH variable by writing this:
PATH=$PATH:$JAVA_HOME/bin
export PATH Complete text added by you should look like this:
JAVA_HOME=/Your Java directory here
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH- Save profile file and exit the text editor and restart your server.
0 comments:
Post a Comment