How to Set Java_Home in Linux?
Contents to Install the Jdk Software and Set Java_Home on a Unix System to Set Java_Home, Do One of the Following: for Korn and Bash Shells, Run the Following...
Contents
To Install the JDK Software and Set JAVA_HOME on a UNIX System
- To set JAVA_HOME, do one of the following: For Korn and bash shells, run the following commands: export JAVA_HOME= jdk-install-dir. export PATH=$JAVA_HOME/bin:$PATH.
- Change the permissions to enable you to run the GlassFish ESB Installer by running the following command: chmod 755 JavaCAPS.bin.
How do I set Java_home environment variable?
To set JAVA_HOME, do the following:
- Right click My Computer and select Properties.
- On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.
How do I permanently set my Java path in Linux?
To Set PATH on Linux
- Change to your home directory. cd $HOME.
- Open the .bashrc file.
- Add the following line to the file. Replace the JDK directory with the name of your java installation directory.
- Save the file and exit. Use the source command to force Linux to reload the .bashrc file which normally is read only when you log in each time.