JRE on Ubuntu

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

User avatar
siil-it
Newbie
Newbie
Posts: 4
Joined: 2019-06-28, 08:35

JRE on Ubuntu

Unread post by siil-it » 2019-06-28, 09:39

We are trialing Ubuntu 18.04 LTS as a replacement for some windows 7 systems that the boss doesn't want to replace yet. One of the requirements is that we need a specific version of Java RE working as we have an Oracle app.

After a bit of time searching, I ended up here and installed this browser along with openjdk-8-jre:i386. I went to make the link in the plugins folder but was unable to find libnpjp2.so in the install. I was then given the appropriate tar file by my software devs and followed the procedure here in the bottom 1/3 of the post

The jre is in /opt and working

Code: Select all

java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) Server VM (build 25.211-b12, mixed mode)
Also ran the Java control panel and changed the settings to add the Oracle App url to the Exceptions site list and changed the default browser to pale moon. I've added the link into the /usr/lib/mozilla/plugins folder but I'm not seeing the plugin available in the browser after a browser restart.

Anyone give me a clue as to how to get this working?

User avatar
JesusOfSuburbia
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2018-03-11, 15:50
Location: Limburg, Netherlands

Re: JRE on Ubuntu

Unread post by JesusOfSuburbia » 2019-06-28, 10:44

You might want to check out the IcedTea Web plugin. It is the OpenJDK equivalent to Oracle's Java Browser plugin. It should be in the package 'icedtea-plugin'.

User avatar
stevepusser
Lunatic
Lunatic
Posts: 498
Joined: 2015-08-01, 18:33
Location: California

Re: JRE on Ubuntu

Unread post by stevepusser » 2019-06-28, 21:00

Also of interest is why they had you specify the 32-bit version of JRE. If you installed the 32-bit version of Ubuntu, you don't have to specify that or the version of the icedtea-plugin, and if you have the 64-bit version and 64-bit Pale Moon, you'll need the 64-bit icedtea plugin.

User avatar
siil-it
Newbie
Newbie
Posts: 4
Joined: 2019-06-28, 08:35

Re: JRE on Ubuntu

Unread post by siil-it » 2019-06-30, 06:57

stevepusser wrote:
2019-06-28, 21:00
Also of interest is why they had you specify the 32-bit version of JRE. If you installed the 32-bit version of Ubuntu, you don't have to specify that or the version of the icedtea-plugin, and if you have the 64-bit version and 64-bit Pale Moon, you'll need the 64-bit icedtea plugin.
The particular oracle app we are using is very old and works best on the 32bit Java. We are due a major rebuild of the app soon as we're migrating off Solaris on to Linux so the new version will be 64bit.
JesusOfSuburbia wrote:
2019-06-28, 10:44
You might want to check out the IcedTea Web plugin. It is the OpenJDK equivalent to Oracle's Java Browser plugin. It should be in the package 'icedtea-plugin'.
Thanks for that, I will give it a try

User avatar
siil-it
Newbie
Newbie
Posts: 4
Joined: 2019-06-28, 08:35

Re: JRE on Ubuntu

Unread post by siil-it » 2019-06-30, 08:47

I've installed openjdk-8-jre openjdk-8-jre-headless icedtea-8-plugin

I ran update-alternatives --config java and selected java 8 which is giving me

Code: Select all

java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)
I went into IcedTea Web Control Panel & set the JVM to /usr/lib/jvm/java-8-openjdk-amd64/jre/ which validated

Everything I read tells me I now need to create the symbolic link to libnpjp2.so in /usr/lib/mozilla/plugins except I can't find the file within the JVM folders?

Is there something I need to run in java/icedtea to generate that file or should I be creating a symlink to a different file?

User avatar
siil-it
Newbie
Newbie
Posts: 4
Joined: 2019-06-28, 08:35

Re: JRE on Ubuntu

Unread post by siil-it » 2019-06-30, 09:24

Ok, I manually copied the missing so file from the tar file and I now have a the java appearing in the plugins!

The bleeding oracle isn't working with the 64bit java so I'm going to need to look at trying the 32bit install instead ffs!

Post Reply