![]() Java -version should return java version "1.6.0_30" Select your new created javaws alternative Select your newly created javac alternative Sudo update-alternatives -install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/java-6-oracle/bin/javaws" 1 Sudo update-alternatives -install "/usr/bin/javac" "javac" "/usr/lib/jvm/java-6-oracle/bin/javac" 1 Sudo update-alternatives -install "/usr/bin/java" "java" "/usr/lib/jvm/java-6-oracle/bin/java" 1 Add the new version of java, javac and javaws as an system alternative and give it priority 1.Mv /path/to/binary/jdk1.6.0_30 /path/to/binary/java-6-oracle & mv /path/to/binary/java-6-oracle /usr/lib/jvm/ Move the folder to a system wide path and give it a more identifiable name.There will be a newly created folder on the same path with the extracted files Run Sun/Oracle Java JDK binary and delete it.Note: Select any of the Linux x86 or Linux 圆4 bin packages (example jdk-6u30-linux-i586.bin, jdk-6u30-linux-圆4.bin) depending on your system and preference.Ĭhmod +x /path/to/file/jdk-6u30-linux-*.bin (should work with any other version downloaded from Oracle)ĭownload Sun/Oracle Java JDK or JRE from here (current version is JDK 6 Update 30). How to install Oracle Java JDK6u30 on Ubuntu 11.10 This guide describes how-to download, install and make java, javac and javaws from Oracle available to use in your system. That does not stop you from installing Oracle's JDK from a PPA or from the official package files from the Oracle's site. The basic idea is that Oracle's Java Se will not be included in any official Ubuntu repo due to license problems created by Oracle. The reason why Oracle's Java implementation is not supported or distributed by Ubuntu already discussed here. How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?.(64bit) ln -s /usr/lib/jvm/java-6-oracle/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/Ĭonfirm that the JRE has been successful by using the official oracle website. (32bit) ln -s /usr/lib/jvm/java-6-oracle/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/ Now you can install the plugin, by creating a symbolic link (you tell Firefox, where the plugin is located). ![]() Remove a former version of the Java plugin (may or may not be present) rm ~/.mozilla/plugins/libnpjp2.so Remove the IcedTea plugin, if it has been installed. These should display the oracle version installed - 1.6.0_30 Install the Firefox/Chrome plugin wget ĭon't worry - 0.5b refers to the script version - not the version of java!Īn alternative to this is to use the webupd8 ppa and the update-java package.įinally test the switch has been successful: java -version hosts a nice-easy script to help with this. ![]() Sudo mv java-6-oracle /usr/lib/jvm switch to Oracle JDK 6
0 Comments
Leave a Reply. |