Pages

Wednesday, May 15, 2013

update alternatives java centos

update alternatives java centos


We shall Work with multiple versions of JDK
In that case alternatives tool can be used,


alternatives --install /usr/bin/java java /opt/jdk1.6.0_18/bin/java 4

alternatives  --config java

Here the given path in the previous command will be shown.
Specify the number corresponding to the Path

alternatives --install /usr/bin/java javac /opt/jdk1.6.0_18/bin/javac 4

alternatives  --config javac

alternatives --install /usr/bin/javah javah /opt/jdk1.6.0_18/bin/javah 4
 

alternatives  --config javah

No comments:

Post a Comment