speedywhe.blogg.se

Ubuntu update openjdk 7 to 8
Ubuntu update openjdk 7 to 8











ubuntu update openjdk 7 to 8

# If you have the a devel JDK package installed You can have several version of java installed at the same time and change the startup variables to effect which one is your default JVM.įrom CentOS nf # If you have the a base JRE package installed This is typically (depending) on the configuration file set your options. If you look in /etc/java or something like /etc/java-7-openjdk you should see the configuration files. There is only 1 program which provides java SLES11 # update-alternatives -config java Making the change if you already have them installed and just need to change the default.

ubuntu update openjdk 7 to 8

Lrwxrwxrwx 1 root root 36 Mar 19 06:03 jre_ibm_exports -> /usr/lib64/jvm-exports/jre-1.6.0-ibm Lrwxrwxrwx 1 root root 36 Mar 19 06:03 jre_exports -> /usr/lib64/jvm-exports/jre-1.6.0-ibm The man page give the path that the update-alternatives uses for its directory. Slave keytool: /usr/lib64/jvm/jre-1.6.0-ibm/bin/keytoolĬurrent `best' version is /usr/lib64/jvm/jre-1.6.0-ibm/bin/java. Slave policytool: /usr/lib64/jvm/jre-1.6.0-ibm/bin/policytool Slave jre_exports: /usr/lib64/jvm-exports/jre-1.6.0-ibm Slave tnameserv: /usr/lib64/jvm/jre-1.6.0-ibm/bin/tnameserv Slave rmiregistry: /usr/lib64/jvm/jre-1.6.0-ibm/bin/rmiregistry Link currently points to /usr/lib64/jvm/jre-1.6.0-ibm/bin/java SLES11 # update-alternatives -display java

ubuntu update openjdk 7 to 8

Notes: This might make it more understandable. Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode) Java(TM) SE Runtime Environment (build 1.7.0-b147) * 0 /usr/lib/jvm/jdk1.7.0/bin/java 1065 auto modeġ /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual modeĢ /usr/lib/jvm/jdk1.7.0/bin/java 1065 manual modeĪnd because 1065 is higher than 1061, the fresh installed java 7 will be used by default on my machine There are 2 choices for the alternative java (providing /usr/bin/java). To check my installation i use –config parameter

ubuntu update openjdk 7 to 8

Update-alternatives -install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0/bin/javac 1065 Update-alternatives -install /usr/bin/java java /usr/lib/jvm/jdk1.7.0/bin/java 1065 Found a site that has a pretty good explanation: LINKĭebian has a script to maintain different version of programs like java called update-alternatives.













Ubuntu update openjdk 7 to 8