ubuntu alternatives configuration

阅读更多
I installed several jdk version into my ubuntu system.
I modified the '.bashrc' or the '.bash_profile' files and set the JAVA_HOME properties ,but it didn't work.
In ubuntu , set the right like this (Debian command).:

winter@dodo:~$ sudo update-alternatives --config java

There are 3 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
      1        /usr/bin/gij-wrapper-4.1
 +   2        /usr/lib/jvm/java-gcj/jre/bin/java
*     3        /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

Press enter to keep the default[*], or type selection number: 3
Using `/usr/lib/jvm/java-1.5.0-sun/jre/bin/java' to provide `java'.

你可能感兴趣的:(Ubuntu,Java,JVM,Debian,Bash)