LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2012, 02:05 PM   #1
Raffael XV
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Rep: Reputation: Disabled
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

Last edited by Raffael XV; 09-13-2012 at 02:09 PM. Reason: format
 
Old 09-13-2012, 02:54 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062
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.

Last edited by tronayne; 09-13-2012 at 02:56 PM.
 
Old 09-13-2012, 03:51 PM   #3
Raffael XV
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
...
 
Old 09-13-2012, 05:31 PM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062
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.
 
Old 09-13-2012, 06:31 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
This 1 has never failed me.
https://sites.google.com/site/easylinuxtipsproject/java
 
Old 09-13-2012, 07:50 PM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
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

Last edited by craigevil; 09-13-2012 at 07:52 PM.
 
Old 09-18-2012, 08:48 AM   #7
Raffael XV
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-18-2012, 09:10 AM   #8
Raffael XV
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
my netBeans is back working

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin for chrome/firefox?? richiejr Linux - Newbie 15 01-25-2012 02:09 PM
Java applet not working in mac google chrome saravanan1525 Linux - Software 1 10-21-2011 11:09 AM
[SOLVED] Google Talk Plugin, Slackware64-Current, Google Chrome (Latest) and Multilib - Error Gavin Harper Slackware 3 01-04-2011 08:45 AM
13.1 x86_64 : Google Chrome : anyone get vlc/mplayer plugin to work? linuxs64 Slackware 1 07-05-2010 08:55 PM
Java applet doesn't work on Google Chrome kvk118 Linux - Newbie 1 05-07-2010 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration