Page 1 of 1

Oracle JRE crashes Palemoon 28.1

Posted: 2018-10-27, 22:05
by Zinkum
Good evening,

It happened that I needed to install the latest Oracle Java 8 alongside with OpenJDK 7, so I did.
After that Palemoon fails on start:

Code: Select all

~$ palemoon
palemoon: symbol lookup error: /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so: undefined symbol: _ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
It happens even though I set Java 7 as default:

Code: Select all

~$ java -version
java version "1.7.0_181"
OpenJDK Runtime Environment (IcedTea 2.6.14) (7u181-2.6.14-0ubuntu0.2)
OpenJDK 64-Bit Server VM (build 24.181-b01, mixed mode)
What might be the problem and is there any way to fix it?

Xubuntu 14.04, 64bit, Palemoon 28.1 64bit.

Thank you.

Note: adding some tags here for searching: java crash crashed libnpjp2.so libnpjp2 plugin Java-8 symbol lookup error

Re: Oracle JRE crashes Palemoon 28.1

Posted: 2018-10-28, 10:51
by vannilla
Make sure the browser uses the Java 7 plugin, rather than Java 8.
Check about:addons or the like.
The problem appears to be that Pale Moon needs the getline function, but doesn't find it (at least with the needed signature).

Re: Oracle JRE crashes Palemoon 28.1

Posted: 2018-10-28, 16:37
by Zinkum
vannilla wrote:Check about:addons or the like.
Thank you for your reply.
Do you know if there is a way to edit addons/plugins settings via editing any config file or something? As I said, when Oracle Java is present in the system, Palemoon simply does not start, even if OpenJDK7 is set as default system-wide (I assume the command output in my first post is intended to show that).
Moreover, I have IcedTea plugin permanently disabled in Palemoon settings.
Thank you.

Re: Oracle JRE crashes Palemoon 28.1

Posted: 2018-10-28, 16:56
by yami_
You could try to remove the plugin from /usr/lib/mozilla/plugins/.

Re: Oracle JRE crashes Palemoon 28.1

Posted: 2018-10-28, 17:29
by vannilla
The plug-in, for all we know, might look at hard-coded paths, so even if the system-wide JRE is 7, the plugin will still look for 8.
Unfortunately I don't know how to fix the problem.
If there's nothing else, as suggested by yami_, delete the Java 8 plugin entirely. That way Pale Moon will pick up the other one.

Re: Oracle JRE crashes Palemoon 28.1

Posted: 2018-10-29, 02:00
by Zinkum
Hi guys,

Looks like removing the plugin worked. Thanks a lot!

Just in case anyone faces the same problem I'll list the steps I took to solve the problem (though I do not think the sequence is 100% important):
1. Installed Oracle Java 8 from webupd8team ppa.
2. It automatically installed oracle-java8-set-default package (for Ubuntu), which I immediately removed.
3. Installed openjdk-jre7 and default-jre packages (with 2 deps) from the official repos.
4. At this point it looked like that Oracle Java 8 was set as default system-wide.
5. sudo update-alternatives --config java and follow the instructions to set openjdk-jre7 as default.
6. java -version to check that openjdk-jre7 is indeed set as default.
7. At this point Palemoon still does not start.
8. Delete (or better move somewhere) java plugin from /usr/lib/mozilla/plugins.
9. Palemoon starts and works fine, however some other programs (like ImageJ in my case) still use Oracle Java 8 as default option (but they work OK; maybe deleting corresponding configs will do the same trick, but I am satisfied with what I have).

Re: Oracle JRE crashes Palemoon 28.1

Posted: 2018-10-29, 09:24
by dinosaur
Java 8 is working just fine for me with Pale Moon, under PCLinuxOS: the missing symbol you get is from the C++ library. Apparently, the libstdc++ version on your Xubuntu 14.04 distro is too old, and Java 8 was compiled with a newer version.

Simply install a newer libstdc++ (/usr/lib64/libstdc++.so.6.0.N) on your system (you can grab one from a newer Ubuntu distro), and Java 8 will work.

Re: Oracle JRE crashes Palemoon 28.1

Posted: 2018-10-30, 21:14
by stevenpusser
There is a PPA with newer gcc versions for Ubuntu 14.04--I have to add it to build Pale Moon deb packages with gcc-5, since 14.04's gcc-4.8 is too old.

https://launchpad.net/~ubuntu-toolchain ... buntu/test