Created
October 18, 2013 08:00
-
-
Save GJSmith3rd/7038044 to your computer and use it in GitHub Desktop.
Switch between different Java (JVM) in Linux
http://blog.mypapit.net/2007/10/how-to-switch-between-different-java-jvm-in-ubuntu-and-debian-gnu-linux.html
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
$ java -version | |
$ sudo update-alternatives --config java | |
$ ls -la /etc/alternatives/java* && ls -la /etc/alternatives/jar | |
$ sudo update-alternatives --config javac | |
$ sudo update-alternatives --config java | |
$ sudo update-alternatives --config javaws | |
$ sudo update-alternatives --config javadoc | |
$ sudo update-alternatives --config javah | |
$ sudo update-alternatives --config javap | |
$ sudo update-alternatives --config jar | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment