Error No Alternatives For Javaplugin.so
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Is there a way to update all Java related alternatives? up vote 42 down vote favorite 18 Is there a way to quickly switch over all the Java related alternatives using update-alternatives? For instance, if want to switch Java over to 7, I run sudo update-alternatives --config java and select the Java 7 OpenJdk. But if I run update-alternatives --get-selections | grep java I get the following, appletviewer auto /usr/lib/jvm/java-6-openjdk-amd64/bin/appletviewer extcheck auto /usr/lib/jvm/java-6-openjdk-amd64/bin/extcheck idlj auto /usr/lib/jvm/java-6-openjdk-amd64/bin/idlj itweb-settings auto /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/itweb-settings jar auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jar jarsigner auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jarsigner java manual /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java javac auto /usr/lib/jvm/java-6-openjdk-amd64/bin/javac javadoc auto /usr/lib/jvm/java-6-openjdk-amd64/bin/javadoc javah auto /usr/lib/jvm/java-6-openjdk-amd64/bin/javah javap auto /usr/lib/jvm/java-6-openjdk-amd64/bin/javap javaws auto /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws jconsole auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jconsole jdb auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jdb jexec auto /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/jexec jhat auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jhat jinfo auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jinfo jmap auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jmap jps auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jps jrunscript auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jrunscript jsadebugd auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jsadebugd jstack auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jstack jstat auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jstat jstatd auto /usr/lib/jvm/java-6-openjdk-amd64/bin/jstatd keytool auto /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/keytool native2asci
/ OpenJDK in different versions and releases of Ubuntu (>= 10.04.4). When you try to install OpenJDK in Ubuntu (a required condition to install R, JGR and Deducer) you can receive some errors. They are not critical for this process, but you may want to solve them. In Ubuntu 10.04.4, 10.10 you can receive these errors (for the 32-bit version): > update-alternatives: error: no alternatives for mozilla-javaplugin.so> update-java-alternatives: plugin alternative http://askubuntu.com/questions/141791/is-there-a-way-to-update-all-java-related-alternatives does not exist: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so or (for the 64-bit version) > update-alternatives: error: no alternatives for mozilla-javaplugin.so> update-java-alternatives: plugin alternative does not exist: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so That is because you do not have installed IcedTeaPlugin, a web browser plugin based on OpenJDK and IcedTea to execute Java applets. These errors are not critical for the R, JGR http://r-interface.blogspot.com/2012/05/java-openjdk-install-errors-in-ubuntu.html and Deducer installation and running, but if you need this plugin (and to resolve these errors), just install it (but I will recommend the Adobe Flash Player plugin): apt-get install icedtea6-plugin and rerun: update-java-alternatives -s java-6-openjdk In Ubuntu 11.04 you can receive similar errors (for the 32-bit version): > update-alternatives: error: no alternatives for mozilla-javaplugin.so > update-java-alternatives: plugin alternative does not exist: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/ or (for the 64-bit version) > update-alternatives: error: no alternatives for mozilla-javaplugin.so > update-java-alternatives: plugin alternative does not exist: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/ To solve the first error you just need to install the IcedTeaPlugin (see above), but the plugin will become active only if you will resolve the error number two. For this, you must edit the line at the end of '/usr/lib/jvm/.java-6-openjdk.jinfo' that looks like this (for the 32-bit version): plugin mozilla-javaplugin.so /usr/lib/jvm/java-6-openjdk/jre/lib/i386/ or (for the 64-bit version) plugin mozilla-javaplugin.so /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/ but should look like this (for the 32-bit version): plugin mozilla-javaplugin.so /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so or (for the 64-bit version
for java-package is src:java-package. Reported by: Sam Morris