Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

alternatives jdk1.8 rhel6

# Installing Java 8 on Centos - Make sure to setup javac and jar commands path using alternatives
alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_201/bin/jar 2
alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_201/bin/javac 2
alternatives --set jar /opt/jdk1.8.0_201/bin/jar
alternatives --set javac /opt/jdk1.8.0_201/bin/javac
Source by tecadmin.net #
 
PREVIOUS NEXT
Tagged: #alternatives
ADD COMMENT
Topic
Name
1+6 =