-
-
Save i-amolo/d1c74386e699e72f984a69c42e2b3868 to your computer and use it in GitHub Desktop.
Using etc alternatives to set default Java on CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user@www]# alternatives --install /usr/bin/java java /opt/jdk1.6.0_07/bin/java 2 | |
[user@www]# alternatives --config java | |
There are 2 programs which provide 'java'. | |
Selection Command | |
----------------------------------------------- | |
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java | |
2 /opt/jdk1.6.0_07/bin/java | |
Enter to keep the current selection[+], or type selection number: 2 | |
[user@www]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment