I've installed Oracle Java 7 according to this guide.
When I run sudo update-java-alternatives -s java-7-oracle
, it gives me :
update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.
update-alternatives: error: alternative /usr/lib/jvm/java-7-oracle/jre/bin/jexec for jexec not registered, not setting.
update-alternatives: error: alternative /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so for mozilla-javaplugin.so not registered, not setting.
update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.
What is the matter? I use ubuntu12.04 amd64.
Properly installing Oracle java 7 JDK and JRE on Ubuntu 64Bits and beased distributions.
OPTION 1: Step by Step
OPEN A TERMINAL WINDOW (uxterm or any other terminal emulator)
Run as root
Guarantee that command "apt-add-repository" is working (a know bug in some Ubuntu 64bits, and based distributions)
Install Oracle java PPA
Install Oracle java
Fix know Oracle java issues: part 1. Make the dir "/usr/lib/xulrunner-addons/plugins/"
Fix know Oracle java issues: part 2. Register missing alternatives
Fix know Oracle java issues: part 3. Correct the location of the "jexec" file in "/usr/lib/jvm/.java-7-oracle.jinfo"
Update java alternatives to make Oracle java to be the default java on system
Uninstall OpenJDK java files
Logout from "root" user
Close terminal window
OPTION 2: ONE TIME SCRIPT
OPEN A TERMINAL WINDOW (uxterm or any other terminal emulator)