Code: Select all
java -version
Code: Select all
java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Moderator: trava90
Code: Select all
java -version
Code: Select all
java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Code: Select all
sudo updatedb --prunepaths='/tmp /var/spool /media /mnt'
Code: Select all
locate libnpjp2.so
Code: Select all
ls -al /usr/lib/mozilla/plugins
I don't think Java test page has any problem, what I don't understand is Java test page uses Javascript (I think), and the site I'm trying to access uses applet, the applet is working (it brings up a dialog asking if I want to run Java), but Java test page shows that there's no Java in the browser. Is the script blocked somehow in the Pale Moon?Fedor2 wrote:Perhaps something wrong with java home page. Did you run your java application?
Here are the answers to your question:therube wrote:32 or 64-bit PM?
Bitness needs to be the same.
What does about:plugins show?
What does Addons Manager -> Plugins show?
Is that Java 8u191?
Is that the latest available on Ubuntu?
Maybe it's blacklisted?
KB: Java
Code: Select all
Java(TM) Plug-in 11.201.2
File: libnpjp2.so
Path: /usr/lib/java/jre1.8.0_201/lib/amd64/libnpjp2.so
Version: 11.201.2
State: Enabled
Next Generation Java Plug-in 11.201.2 for Mozilla browsers
Code: Select all
Java(TM) Plug-in 11.201.2
Kruppt wrote:Code: Select all
locate libnpjp2.so
Code: Select all
/home/michael/.i4j_jres/1.8.0_152_64/lib/amd64/libnpjp2.so
/opt/jd2/jre/lib/amd64/libnpjp2.so
/usr/lib/java/jre1.8.0_201/lib/amd64/libnpjp2.so
/usr/lib/mozilla/plugins/libnpjp2.so
Kruppt wrote:Code: Select all
ls -al /usr/lib/mozilla/plugins
Code: Select all
drwxr-xr-x 2 root root 4096 Mar 21 12:56 .
drwxr-xr-x 3 root root 4096 Oct 13 08:08 ..
lrwxrwxrwx 1 root root 37 Mar 13 08:19 flashplugin-alternative.so -> /etc/alternatives/mozilla-flashplugin
lrwxrwxrwx 1 root root 48 Mar 21 12:56 libnpjp2.so -> /usr/lib/java/jre1.8.0_201/lib/amd64/libnpjp2.so
Just delete the /usr/lib/java/jre1.8.0_201 directorymichaelbr wrote: ↑2019-03-24, 14:22Kruppt wrote:Code: Select all
locate libnpjp2.so
Code: Select all
/home/michael/.i4j_jres/1.8.0_152_64/lib/amd64/libnpjp2.so /opt/jd2/jre/lib/amd64/libnpjp2.so /usr/lib/java/jre1.8.0_201/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
Kruppt wrote:Code: Select all
ls -al /usr/lib/mozilla/plugins
Here I have some comment:Code: Select all
drwxr-xr-x 2 root root 4096 Mar 21 12:56 . drwxr-xr-x 3 root root 4096 Oct 13 08:08 .. lrwxrwxrwx 1 root root 37 Mar 13 08:19 flashplugin-alternative.so -> /etc/alternatives/mozilla-flashplugin lrwxrwxrwx 1 root root 48 Mar 21 12:56 libnpjp2.so -> /usr/lib/java/jre1.8.0_201/lib/amd64/libnpjp2.so
I made a mistake of installing Oracle Java, then removed it and installed OpenJRE, but it seems Oracle Java wasn't remove completely, in my PATH still shows Oracle Java, is there any tutorial showing/explaining how to clean up previous Java install and keep only the last one? As you can see in the output, it's quite messy and I'd like to clean it up, if possible.
Code: Select all
sudo ln -s /opt/jd2/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
Thanks so much for your reply/help, after following your instructions, it worked.Kruppt wrote: ↑2019-05-07, 20:45Just delete the /usr/lib/java/jre1.8.0_201 directory
and the libnpjp2.so soft-link in /usr/lib/mozilla/plugins.
You would then need to create a new soft-link to the libnpjp2.so
of the java version you intend to use in /usr/lib/mozilla/plugins.
I'm going to assume it is /opt/jd2/jre/lib/amd64/libnpjp2.so.
So as an example if this is the case:Code: Select all
sudo ln -s /opt/jd2/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
Code: Select all
java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
michaelbr wrote: ↑2019-05-09, 06:58Thanks so much for your reply/help, after following your instructions, it worked.Kruppt wrote: ↑2019-05-07, 20:45Just delete the /usr/lib/java/jre1.8.0_201 directory
and the libnpjp2.so soft-link in /usr/lib/mozilla/plugins.
You would then need to create a new soft-link to the libnpjp2.so
of the java version you intend to use in /usr/lib/mozilla/plugins.
I'm going to assume it is /opt/jd2/jre/lib/amd64/libnpjp2.so.
So as an example if this is the case:Code: Select all
sudo ln -s /opt/jd2/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
Now I have another problem, and I'd like to make sure I'm doing it right. In Windows, you need to remove the old version of Java and install a new one, in Linux do you also need to remove it before installing a new one? My apps is telling me that my version is obsoleteCode: Select all
java -version openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
and the new version is jre-8u211. What's the best way to install Java on Ubuntu 16.04? Just download Java from Java site and unpack it? It seems there's no repo for OpenJDK. Thanks again for your help.
Code: Select all
sudo apt-get update
Code: Select all
sudo apt-get upgrade
Code: Select all
sudo apt-get install default-jre default-java-plugin
Code: Select all
sudo apt-get install default-jdk default-java-plugin
Code: Select all
sudo apt-get install default-jre default-jdk default-java-plugin
Code: Select all
sudo update-alternatives --config java
Code: Select all
cd /home/michael/Downloads
Code: Select all
tar zxvf jre-8u211-linux-x64.tar.gz
Code: Select all
sudo rsync -av /home/michael/Downloads/jre1.8.0_211 /opt
Code: Select all
sudo ln -s /opt/jre1.8.0_211/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
First of all, I would like to thank you for writing so detailed explanation, it's much appreciated, this helped me a lot since I'm not that familiar with Linux.Kruppt wrote: ↑2019-05-11, 22:28
open a user term and run the following commands:Code: Select all
sudo apt-get update
To install OpenJRE and the related open java plugin run:Code: Select all
sudo apt-get upgrade
Or, if you wanted the Open Java Developerment Kit instead, not OpenJRE do as so:Code: Select all
sudo apt-get install default-jre default-java-plugin
Or, if you wanted both OpenJRE and OpenJDK as well as the Open JAVA Plugin. do as such:Code: Select all
sudo apt-get install default-jdk default-java-plugin
This should have you up to date with the version of java that is compatibleCode: Select all
sudo apt-get install default-jre default-jdk default-java-plugin
with java applications that are installed or availble from the repos for Ubuntu 16.04
After these processes have finished, run:Chose the appropriate version you intend to use.Code: Select all
sudo update-alternatives --config java
Code: Select all
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Code: Select all
apt-cache policy default-jre
This is the output
Code: Select all
default-jre:
Installed: 2:1.8-56ubuntu2
Candidate: 2:1.8-56ubuntu2
Version table:
*** 2:1.8-56ubuntu2 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
amapora@ws001:~$ sudo updatedb --prunepaths='/tmp /var/spool /media /mnt'Kruppt wrote: ↑2019-03-22, 23:50Run from terminal:Then run:Code: Select all
sudo updatedb --prunepaths='/tmp /var/spool /media /mnt'
Then run:Code: Select all
locate libnpjp2.so
Post output of above last two commands.Code: Select all
ls -al /usr/lib/mozilla/plugins
For reference:
https://askubuntu.com/questions/906315/ ... ser/906341#
https://developer.mozilla.org/en-US/doc ... s_Plug-ins