Versions
- CentOS 6.5
Install
- Edit /etc/profile.d/java.sh:
Note
Replace $JAVA_HOME below with the absolute path to the java distribution. If Oracle JDK is installed $JAVA_HOME is /usr/java/latest 1export JAVA_HOME=$JAVA_HOME - Load into current session:
1 |
source /etc/profile.d/java.sh |
Verify
1 2 |
$ echo $JAVA_HOME /usr/java/latest |