Chinaunix首页 | 论坛 | 博客
  • 博客访问: 832574
  • 博文数量: 222
  • 博客积分: 4341
  • 博客等级: 上校
  • 技术积分: 2155
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-16 13:50
个人简介

...

文章分类

全部博文(222)

文章存档

2019年(1)

2016年(9)

2015年(7)

2014年(14)

2013年(11)

2012年(10)

2011年(6)

2010年(25)

2009年(37)

2008年(21)

2007年(81)

我的朋友

分类: Java

2008-03-22 17:14:43

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) |
给主人留下些什么吧!~~