Install Oracle Java 8 (JDK 8u25) on CentOS/RHEL 6/5
Step 2: Install JAVA using Alternatives
After extracting archive file use alternatives command to install it. alternatives command is available in chkconfig package.
# cd /opt/jdk1.8.0_25/ # alternatives --install /usr/bin/java java /opt/jdk1.8.0_25/bin/java 2 # alternatives --config java There are 3 programs which provide 'java'. Selection Command ----------------------------------------------- * 1 /opt/jdk1.8.0/bin/java + 2 /opt/jdk1.7.0_55/bin/java 3 /opt/jdk1.8.0_25/bin/java Enter to keep the current selection[+], or type selection number:3
Read full article from Install Oracle Java 8 (JDK 8u25) on CentOS/RHEL 6/5
No comments:
Post a Comment