The annoyed configuration of java-6-openjdk

Posted by kit.yang on Ask Ubuntu See other posts from Ask Ubuntu or by kit.yang
Published on 2011-02-24T04:47:57Z Indexed on 2011/02/24 7:32 UTC
Read the original article Hit count: 395

I want to change the java environment to java-6-openjdk.
/etc/environment:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib

java -version:

java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.5) (6b20-1.9.5-0ubuntu1~10.04.1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

javac -version:javac 1.6.0_20

But in the shell:
the echo $JAVA_HOME result is /usr/lib/jvm/java-6-sun-1.6.0.22 while the $CLASSPATH is /usr/lib/jvm/java-6-sun-1.6.0.22/lib.

How to find the other files in which $JAVA_HOME & $CLASSPATH value is setted by the java-6-sun-1.6.0.22 location?

© Ask Ubuntu or respective owner

Related posts about configuration

Related posts about java