debian下安装sun-java6后查看/etc/alternatives目录发现
lrwxrwxrwx 1 root root 44 2008-03-21 09:51 appletviewer -> /usr/lib/jvm/java-1.5.0-sun/bin/appletviewer
lrwxrwxrwx 1 root root 35 2008-03-21 09:51 apt -> /usr/lib/jvm/java-1.5.0-sun/bin/apt
lrwxrwxrwx 1 root root 48 2008-03-21 09:51 ControlPanel -> /usr/lib/jvm/java-1.5.0-sun/jre/bin/ControlPanel
lrwxrwxrwx 1 root root 40 2008-03-21 09:51 extcheck -> /usr/lib/jvm/java-1.5.0-sun/bin/extcheck
lrwxrwxrwx 1 root root 45 2008-03-21 09:51 HtmlConverter -> /usr/lib/jvm/java-1.5.0-sun/bin/HtmlConverter
lrwxrwxrwx 1 root root 36 2008-03-21 09:51 idlj -> /usr/lib/jvm/java-1.5.0-sun/bin/idlj
lrwxrwxrwx 1 root root 35 2008-03-21 09:51 jar -> /usr/lib/jvm/java-1.5.0-sun/bin/jar
lrwxrwxrwx 1 root root 41 2008-03-21 09:51 jarsigner -> /usr/lib/jvm/java-1.5.0-sun/bin/jarsigner
lrwxrwxrwx 1 root root 36 2008-03-22 10:45 java -> /usr/lib/jvm/java-6-sun/jre/bin/java
lrwxrwxrwx 1 root root 55 2008-03-22 10:45 java.1.gz -> /usr/lib/jvm/java-6-sun-1.6.0.00/jre/man/man1/java.1.gz
lrwxrwxrwx 1 root root 37 2008-03-21 09:51 javac -> /usr/lib/jvm/java-1.5.0-sun/bin/javac
lrwxrwxrwx 1 root root 39 2008-03-21 09:51 javadoc -> /usr/lib/jvm/java-1.5.0-sun/bin/javadoc
lrwxrwxrwx 1 root root 37 2008-03-21 09:51 javah -> /usr/lib/jvm/java-1.5.0-sun/bin/javah
lrwxrwxrwx 1 root root 37 2008-03-21 09:51 javap -> /usr/lib/jvm/java-1.5.0-sun/bin/javap
lrwxrwxrwx 1 root root 44 2008-03-21 09:51 java-rmi.cgi -> /usr/lib/jvm/java-1.5.0-sun/bin/java-rmi.cgi
lrwxrwxrwx 1 root root 43 2008-03-21 09:51 java_vm -> /usr/lib/jvm/java-1.5.0-sun/jre/bin/java_vm
lrwxrwxrwx 1 root root 42 2008-03-21 09:51 javaws -> /usr/lib/jvm/java-1.5.0-sun/jre/bin/javaws
lrwxrwxrwx 1 root root 40 2008-03-21 09:51 jconsole -> /usr/lib/jvm/java-1.5.0-sun/bin/jconsole
lrwxrwxrwx 1 root root 40 2008-03-22 10:16 jcontrol -> /usr/lib/jvm/java-6-sun/jre/bin/jcontrol
lrwxrwxrwx 1 root root 35 2008-03-21 09:51 jdb -> /usr/lib/jvm/java-1.5.0-sun/bin/jdb
解决
sudo update-java-alternatives --list
sudo update-java-alternatives --auto
sudo update-java-alternatives --set java-6-sun
阅读(1650) | 评论(0) | 转发(0) |