Created
September 4, 2012 18:03
-
-
Save r351574nc3/3624261 to your computer and use it in GitHub Desktop.
Updating Default Java via Ubuntu Alternatives
This file contains hidden or 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
update-alternatives --install /usr/bin/java java /var/lib/jenkins/tools/JDK_6/bin/java 99 |
This file contains hidden or 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
update-alternatives --list java |
This file contains hidden or 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
sudo update-alternatives --install /usr/bin/ant ant /var/lib/jenkins/tools/Ant_1.7.1/bin/ant 99 | |
sudo update-alternatives --set ant /var/lib/jenkins/tools/Ant_1.7.1/bin/ant |
This file contains hidden or 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
sudo update-alternatives --install /usr/bin/javac javac /var/lib/jenkins/tools/jrockit/bin/javac 99 | |
sudo update-alternatives --set javac /var/lib/jenkins/tools/jrockit/bin/javac |
This file contains hidden or 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
sudo update-alternatives --install /usr/bin/mvn mvn /var/lib/jenkins/tools/Maven-3.0.3/bin/mvn 99 | |
sudo update-alternatives --set mvn /var/lib/jenkins/tools/Maven-3.0.3/bin/mvn |
This file contains hidden or 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
update-alternatives --set java /var/lib/jenkins/tools/JDK_6/bin/java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment