LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Google Chrome Java Plugin keeps out of Date (https://www.linuxquestions.org/questions/linux-software-2/google-chrome-java-plugin-keeps-out-of-date-4175427102/)

Raffael XV 09-13-2012 02:05 PM

Google Chrome Java Plugin keeps out of Date
 
Hi, all
I could not anyway get my Chrome to use the latest Java SE 7 update 07 plugin, it keeps, I dont know why, using Java SE 6 Update 24.

my java version:
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

I also did create a link for /usr/lib/jvm/jre1.7.0_07/lib/i386/libnpjp2.so (which many says was supposed to solve this problem) in the folders:

/usr/lib/mozila/plugins
/opt/google/chrome/plugins/

but no success :( I specially want to access the javaFX sample page (http://download.oracle.com/otndocs/p...x.html#SAMPLES)
but I keep getting messages "please install java ..."

my linux is: Mint 13 (Maya)
thanks in advance

tronayne 09-13-2012 02:54 PM

If you're in the /usr/lib/mozilla/plugins directory and execute ls you should see
Code:

ls
libflashplayer.so*  libnpjp2.so@  skypebuttons.so*

Now, this is Slackware 64-bit 13.37 so just ignore the lib64 and think "lib" when executing ls -l in that directory
Code:

ls -l
total 18844
-rwxr-xr-x 1 root root 19216752 May 11 01:33 libflashplayer.so*
lrwxrwxrwx 1 root root      41 Aug 31 09:07 libnpjp2.so -> /usr/lib64/java/jre/lib/amd64/libnpjp2.so*
-rwxr-xr-x 1 root root    76720 Jul  6  2011 skypebuttons.so*

You should have roughly the same path to /usr/lib/java/.../libnpjp2.so (and the same path in /opt/google/chrome/plugins).

Did you remove (or does your update software remove) Java 6.x? Or is libnpjp2.so in your plugins directories a copy rather than a symbolic link (ls -l should show you the above)?

Hope this helps some.

Raffael XV 09-13-2012 03:51 PM

tronayne, thanks for reply

look at my output:
Code:

/usr/lib/mozilla/plugins $ ls -l
...
lrwxrwxrwx 1 root root    35 Aug 18 10:13 libflashplayer.so -> /etc/alternatives/libflashplayer.so
lrwxrwxrwx 1 root root    39 Aug 18 10:13 libjavaplugin.so -> /etc/alternatives/mozilla-javaplugin.so
lrwxrwxrwx 1 root root    45 Sep 13 11:29 libnpjp2.so -> /usr/lib/jvm/jre1.7.0_07/lib/i386/libnpjp2.so
...


tronayne 09-13-2012 05:31 PM

Something you probably ought to do (until the Java "problems" are fixed) is to disable the Java plug in: go to Tools, Add-ons, Plugins and click Disable for the Java Plugin. That won't affect JavaScript (oh, so many web pages throw so many JavaScripts at you, dang 'em) but it will prevent problems.

Note that if you have JDK installed you do not need to also install JRE separately, JRE is included in JDK.

If you continue to have problems it might be a good idea to simply remove whatever Java packages you have installed then install Java JDK 7u7 again. You know, clean it out then install clean. Can't hurt, might help; it sounds like you have a corpse or two laying about and you'll need to clean it/those out.

You can download the current versions from http://www.oracle.com/technetwork/ja...sp-138363.html. Your distribution can no longer redistribute Oracle Java so you've got to get it from Oracle and install it. Just go to the web page, click on Java Platform (JDK) 7u7 then pick the package type you need.

If you do not want JDK, you can click on the Download button under "JRE."

Hope this helps some.

EDDY1 09-13-2012 06:31 PM

This 1 has never failed me.
https://sites.google.com/site/easylinuxtipsproject/java

craigevil 09-13-2012 07:50 PM

disable the version you do not want used in about:plugins.

You may also need to run:
update-alternatives --config java

It should point to oracle.

# update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 auto mode
* 1 /usr/lib/jvm/j2re1.7-oracle/bin/java 316 manual mode
2 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 manual mode

$ java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode)


From Chrome about:plugins
Java - Version: 1.7.0_07 (Disabled)
Java plug-in for NPAPI-based browsers.
Name: Java(TM) Plug-in 1.7.0_07
Description: Java plug-in for NPAPI-based browsers.
Version: 1.7.0_07
Location: /usr/lib/jvm/j2re1.7-oracle/lib/i386/libnpjp2.so
Type: NPAPI

Raffael XV 09-18-2012 08:48 AM

solved !!
 
As you advised, I deleted all javas from my machine and installed only jdk 7u07 64bit
I guess the problem was the old link libnpjp2.so was of 32bit jdk version

Code:

/usr/lib/mozilla/plugins $ ls -l
...
lrwxrwxrwx 1 root root    35 Aug 18 10:13 libflashplayer.so -> /etc/alternatives/libflashplayer.so
lrwxrwxrwx 1 root root    50 Sep 18 09:22 libnpjp2.so -> /usr/lib/jvm/jdk1.7.0_07/jre/lib/amd64/libnpjp2.so
...

/usr/lib/mozilla/plugins $ java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

/usr/lib/jvm $ ls
jdk1.7.0_07

just one annoyance: my Net Beans 7.2 stopped worked. Anyone knows how to make it work again ?? otherwise I gonna have to reinstall it again

thanks all

Raffael XV 09-18-2012 09:10 AM

my netBeans is back working :)

I just had to update jdkHome in <netBeans>/etc/netbeans.conf


All times are GMT -5. The time now is 12:20 AM.