- 论坛徽章:
- 0
|
安装后,设置环境变量如下
JAVA_HOME=/java
CLASSPATH=.JAVA_HOME/lib/dt.jarJAVA_HOME/lib/tools.jar
java -version结果如下
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Server VM (build 1.6.0_01-b06, mixed mode)
但是执行
ls -l /etc/alternatives 和java有关的结果是
lrwxrwxrwx 1 root root 20 4月 18 17:04 etags -> /usr/bin/etags.emacs
lrwxrwxrwx 1 root root 35 4月 18 17:07 java -> /usr/lib/jvm/jre-1.4.2-gcj/bin/java
lrwxrwxrwx 1 root root 26 4月 18 17:07 jre -> /usr/lib/jvm/jre-1.4.2-gcj
lrwxrwxrwx 1 root root 26 4月 18 17:07 jre_1.4.2 -> /usr/lib/jvm/jre-1.4.2-gcj
lrwxrwxrwx 1 root root 34 4月 18 17:07 jre_1.4.2_exports -> /usr/lib/jvm-exports/jre-1.4.2-gcj
lrwxrwxrwx 1 root root 34 4月 18 17:07 jre_exports -> /usr/lib/jvm-exports/jre-1.4.2-gcj
lrwxrwxrwx 1 root root 26 4月 18 17:07 jre_gcj -> /usr/lib/jvm/jre-1.4.2-gcj
lrwxrwxrwx 1 root root 34 4月 18 17:07 jre_gcj_exports -> /usr/lib/jvm-exports/jre-1.4.2-gcj
lrwxrwxrwx 1 root root 42 4月 18 17:07 rmiregistry -> /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry
怎么都是1.4.2的啊??? |
|