* 0 /usr/lib/jvm/java-6-oracle1/bin/java 1047 auto modeĢ /usr/lib/jvm/java-6-oracle1/bin/java 1047 manual modeģ /usr/lib/jvm/jdk1.7.0_75/bin/java 1 manual mode There are 3 choices for the alternative java (providing /usr/bin/java). You will see output similar to the one below - choose the number of jdk1.7.0_75 - for example 3 in this list (unless you have have never installed Java installed in your computer in which case a sentence saying "There is nothing to configure" will appear): $ sudo update-alternatives -config java ![]() Run sudo update-alternatives -config java Sudo chown -R root:root /usr/lib/jvm/jdk1.7.0_75 Be sure to use a higher priority if you want Oracle JDK to remain the default.Ĭorrect the file ownership and the permissions of the executables: sudo chmod a+x /usr/bin/java This will assign Oracle JDK a priority of 1, which means that installing other JDKs will replace it as the default. Sudo update-alternatives -install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0_75/bin/javaws" 1 Sudo update-alternatives -install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_75/bin/javac" 1 Now run sudo update-alternatives -install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_75/bin/java" 1 ![]() Now move the JDK 7 directory to /usr/lib sudo mkdir -p /usr/lib/jvm ![]() Uncompress it tar -xvf jdk-7u75-linux-圆4.tar.gz (32-bit) Download the 32-bit or 64-bit Linux from " " "compressed binary file" - it has a ".tar.gz" file extension.
0 Comments
Leave a Reply. |