Java still not working?
Friday, June 18, 2010 6:48:43 AM
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).