Created
August 24, 2013 01:27
-
-
Save opyate/6325468 to your computer and use it in GitHub Desktop.
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
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 | |
!!:gs/java/jar/ | |
!!:gs/jar/javac/ | |
!!:gs/javac/javah/ | |
!!:gs/javah/javap/ | |
!!:gs/javap/javaws/ | |
!!:gs/javaws/jconsole/ | |
!!:gs/jconsole/jhat/ | |
!!:gs/jhat/jinfo/ | |
!!:gs/jinfo/jmap/ | |
!!:gs/jmap/jps/ | |
!!:gs/jps/jvisualvm/ |
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
sudo aptitude remove -y sun-java6-jdk sun-java6-jre sun-java6-bin sun-java6-plugin |
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
update-alternatives --remove-all java | |
!!:gs/java/jar/ | |
!!:gs/jar/javac/ | |
!!:gs/javac/javah/ | |
!!:gs/javah/javap/ | |
!!:gs/javap/javaws/ | |
!!:gs/javaws/jconsole/ | |
!!:gs/jconsole/jhat/ | |
!!:gs/jhat/jinfo/ | |
!!:gs/jinfo/jmap/ | |
!!:gs/jmap/jps/ | |
!!:gs/jps/jvisualvm/ |
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 | |
java version "1.6.0_14" | |
Java(TM) SE Runtime Environment (build 1.6.0_14-b08) | |
Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment