Java still not working?
Friday, June 18, 2010 6:48:43 AM
Some users of the *nix 10.5x+ Snapshots and Betas have mentioned having problems with Java after our recent switch to using the Java browser plugin rather than interfacing more directly with the JRE. Often this is because they did not have the browser plugin package installed and hence no browser on their system (except for older versions Opera) would work with Java. To remedy this a user needs to install one of the Java browser plugin packages.
The most popular browser plugins are Oracle/Sun's Java plugin and the OpenJDK/IcedTea plugin. The most recent versions of these typically have plugin files called either 'libnpjp2.so' or 'IcedTeaPlugin.so'. If you are unsure which package will provide these files, they will likely be named along the following lines:
Oracle/Sun's Java plugin = java-1.6.0-sun-plugin, java-1_6_0-sun-plugin, jre, etc.
OpenJDK/IcedTea plugin = java-1.6.0-openjdk-plugin, icedtea6-plugin, etc.
Alternatively, many distro package managers provide a way to search for package names by looking for files included within them, even if that package is not yet installed. For example:
Fedora/YUM = yum provides "*/file"
Mandriva/Urpmi = urpmf file
Debian based distros (including Ubtuntu)/APT = apt-file search file
(note: simply replace 'file' with either libnpjp2.so or IcedTeaPlugin.so)
Finally, if all else fails you can download directly from Oracle/Sun's Java download page.
Once you have installed an appropriate Java browser plugin package you can test if Java works via the Java test page.
If the Java browser plugin package you installed has not placed the plugin file (or a symlink to it) into one of the standard browser plugin paths, then Java might still not work. You can remedy this situation by creating your own symlink. After installing either Java plugin package, issue the following command to locate where the plugin file was placed on your system:
find / \( -name libnpjp2.so -o -name IcedTeaPlugin.so \) -type f -print 2>/dev/null
Assuming a result such as:
/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/libnpjp2.soAn appropriate symlink can be setup as follows:
If Opera was installed via a .deb or .rpm file, issue the following:
ln -s /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/libnpjp2.so /usr/lib/opera/plugins/libnpjp2.so(note: You will need to run this command as root or preface it with sudo)
If Opera was installed via the tar package install script into the system:
ln -s /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/libnpjp2.so /usr/local/lib/opera/plugins/libnpjp2.so(note: You will need to run this command as root or preface it with sudo)
If Opera was installed via the tar package install script into the user account:
ln -s /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/libnpjp2.so $HOME/.local/lib/opera/plugins/libnpjp2.so
Java should now be detected. If not, please post below mentioning the distribution you use (including version) and the Java browser plugin package that you installed. It is also worth mentioning how you installed Opera (.deb, .rpm, .tar [system or user, with or without a suffix]) and if you have confirmed Java works in another browser (if so which one).














Ruarí Ødegaardruario # Friday, June 18, 2010 6:53:55 AM
Шуйский Николай [krigstask, Ŝtérkrìg]Sterkrig # Friday, June 18, 2010 8:44:21 AM
In Gentoo one needs to install his/her virtual/jre of choice with nsplugin USE-flag enabled.
Ruarí Ødegaardruario # Friday, June 18, 2010 8:48:37 AM
enzolatina # Friday, June 18, 2010 9:27:49 AM
archlinux x86_64 2.6.34, openjdk 6.b18_1.8, opera 6372
launchin opera from console, i have
any ideas on this?
Ruarí Ødegaardruario # Friday, June 18, 2010 9:44:18 AM
Originally posted by enzolatina:
Yes actually I do. It would seem that we have some issues with the OpenJDK/IcedTea plugin that I was not aware of as I wrote this. There is a bug already logged.I'm sure we'll fix the issue but in mean time if you need Java support in Opera you will need to use Oracle/Sun's Java plugin. On Arch that package is simply called 'jre' (though you probably already worked that out!).
enzolatina # Friday, June 18, 2010 10:16:08 AM
i do not really need java and, if necessary, i have firefox
enzolatina
miki100 # Friday, June 18, 2010 2:36:29 PM
"opera: Plug-in 3283 is not responding. It will be closed.
opera: Define environment variable OPERA_KEEP_BLOCKED_PLUGIN to keep blocked plug-ins."
openSUSE 11.3 RC1, KDE 4.5 Beta2, Opera 10.60-6372 i386
Ruarí Ødegaardruario # Saturday, June 19, 2010 7:51:50 AM
http://my.opera.com/ruario/blog/2010/06/19/thristy-for-some-icedtea-perhaps-you-should-try-a-hot-cup-of-java
Unregistered user # Wednesday, June 23, 2010 6:56:07 PM
Ruarí Ødegaardruario # Thursday, June 24, 2010 5:47:51 AM
Originally posted by anonymous:
The plugin seems to have been coded with FF in mind given it relives on FF components. Opera 10.10 is somewhat irrelevant as it is the only browser listed that does not use the browser plugin. The fact that Opera 10.6x, Chromium 6.0.415 and Epiphany don't see it implies to me that something is broken. Did you run ldd against:/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so
Unregistered user # Thursday, June 24, 2010 6:32:34 PM
Ruarí Ødegaardruario # Thursday, June 24, 2010 7:58:17 PM
Originally posted by anonymous:
yes, read this:
http://my.opera.com/ruario/blog/2010/06/19/thristy-for-some-icedtea-perhaps-you-should-try-a-hot-cup-of-java
Unregistered user # Friday, June 25, 2010 2:33:12 AM
mfbd # Saturday, June 26, 2010 9:42:42 AM
the icedtea-plugin doesn't work in fact on my machine
markus-v # Saturday, July 10, 2010 12:30:02 AM
http://img149.imageshack.us/img149/2204/icedtea.png
Unregistered user # Tuesday, July 13, 2010 10:39:39 AM
vivus-ignis # Thursday, July 15, 2010 8:31:41 AM
i have opera 10.60/6386 on archlinux, jre package installed. opera:plugins shows that java plugin has been recognized correctly, but following the test link (http://www.opera.com/media/applets/clock/) gives nothing but a grey box instead of an applet contents. Tools -> Quick Preferences shows 'Enable Java' dimmed.
Also tried installing jre from an oracle official site installer and pointing opera to a directory with plugin .so doesnt help either.
No warnings when launching opera from console.
Does anybody has suggestions? Any ideas would be appreciated.
enzolatina # Friday, July 16, 2010 9:42:55 PM
vivus-ignis # Friday, July 16, 2010 9:51:28 PM
Unregistered user # Monday, September 20, 2010 4:05:44 AM
Unregistered user # Monday, September 20, 2010 4:42:03 AM
Unregistered user # Monday, November 8, 2010 5:34:13 PM
k561 # Wednesday, December 29, 2010 10:42:49 AM
Unregistered user # Monday, January 24, 2011 10:43:10 AM
Unregistered user # Monday, January 24, 2011 10:44:44 AM
Unregistered user # Monday, January 24, 2011 10:45:09 AM
Unregistered user # Monday, January 24, 2011 10:45:55 AM
Unregistered user # Monday, January 24, 2011 10:47:24 AM
Unregistered user # Monday, January 24, 2011 10:48:21 AM
Unregistered user # Monday, January 24, 2011 10:49:34 AM
Unregistered user # Monday, January 24, 2011 10:49:58 AM
Unregistered user # Monday, January 24, 2011 10:51:12 AM
Unregistered user # Monday, January 24, 2011 10:51:41 AM
Unregistered user # Monday, January 24, 2011 10:54:16 AM
Unregistered user # Monday, January 24, 2011 10:55:55 AM
Unregistered user # Tuesday, May 31, 2011 6:54:52 PM
Unregistered user # Tuesday, May 31, 2011 7:16:23 PM
Unregistered user # Thursday, January 17, 2013 5:23:22 AM