LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 05-09-2007, 09:10 AM   #1
ferao
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Rep: Reputation: 0
Java plugin for firefox does not work (solved)


Hi,
I know there are other topics similar to this on the forum, but none seems to help me.

I have Mandriva 2007 Spring for x86_64. I removed the x86_64 firefox, and I installed the i586 version, from the Main32 source.

I tried to play on yahoo games, but, at the page for loading the game, I got the icon "missing plugins".
I loaded the page "Verifying Installation" at www.java.com but I got the icon "missing plugins".

I downloaded the java runtime environment from the Sun website, it is the 1.6.0_01 version:

jre-6u1-linux-i586-rpm.bin

I run it, and it installed without errors.
Then I made a symbolic link to

/usr/java/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so

And i put it in

/usr/lib/firefox-2.0.0.3/plugins

If I run

# java -version

I get

java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)


In the firefox preferencies window, under the Content tab, I selected Enable Java and Enable JavaScript.

I loaded again the page "Verifying Installation" at www.java.com. This time, I didn't get the icon "missing plugins", but I didn't see the applet running.
I tried to play on yahoo games, but even there I didn't get the icon "missing plugins" any more, but the games doesn't load.

Everithing seems fine, but the Java does not work.

What can I do? I can post the output of other commands, if needed.

Thanks.

Last edited by ferao; 05-10-2007 at 05:42 AM.
 
Old 05-09-2007, 10:19 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Do you have the directory /usr/lib/mozilla with a plugins subdirectory?? If not then create it then create your symbolic link there. Do not forget to exit from the GUI then log back in afterwards.
 
Old 05-09-2007, 10:24 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I have the same setup and all I did was
Code:
#ln -s /usr/java/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-2.0.0.3/plugins/.
Java works fine for me. I did a test using this page.
 
Old 05-09-2007, 11:50 AM   #4
ferao
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Lenard
Do you have the directory /usr/lib/mozilla with a plugins subdirectory?? If not then create it then create your symbolic link there. Do not forget to exit from the GUI then log back in afterwards.
Thank you for the answer, but unfortunately it didn't work.
I tried this, I had the directory
/usr/lib/mozilla
I created the subdir
/usr/lib/mozilla/plugins
and I moved the link to it. But the result does not change: I don't get the icons "missing plugins", but i cannot see the Java programs.
 
Old 05-09-2007, 11:53 AM   #5
ferao
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by reddazz
I have the same setup and all I did was
Code:
#ln -s /usr/java/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-2.0.0.3/plugins/.
Java works fine for me. I did a test using this page.
Thank you to you too for the answer. It is strange. I also created the link, but I did it with konqueror, instead of using the command line. Anyway I got a symbolic link, the result is the same.
The web page you used for the test is the same I used, and I cannot see the Java program.

Note that if I remove the symbolic link in /usr/lib/firefox-2.0.0.3/plugins and I try to load the test page, I get the icons "mossing plugin". Hence this link has some effect. But it is not enough.

Last edited by ferao; 05-09-2007 at 12:02 PM.
 
Old 05-09-2007, 03:15 PM   #6
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Java 1.5.x works well here in Firefox and the applet on the test page succeeds as well. In Firefox's Location text entry field enter:
Code:
about:plugins
This will display a list of the plugins installed in Firefox and their status. If I recall correctly, I had to end my session, restart Xorg, then log in again to make the plugin work here. Hopefully this will be all that is still needed for you ...
 
Old 05-09-2007, 07:17 PM   #7
ferao
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you to you too, ernie. I tried the command

aboutlugins

This is the output. I'm not expert, but it seems ok. Note that the Flash plugin works fine.


Java(TM) Plug-in 1.6.0_01-b06

File name: libjavaplugin_oji.so
Java(TM) Plug-in 1.6.0_01

MIME Type Description Suffixes Enabled
application/x-java-vm Java Yes
application/x-java-applet Java Yes
application/x-java-applet;version=1.1 Java Yes
application/x-java-applet;version=1.1.1 Java Yes
application/x-java-applet;version=1.1.2 Java Yes
application/x-java-applet;version=1.1.3 Java Yes
application/x-java-applet;version=1.2 Java Yes
application/x-java-applet;version=1.2.1 Java Yes
application/x-java-applet;version=1.2.2 Java Yes
application/x-java-applet;version=1.3 Java Yes
application/x-java-applet;version=1.3.1 Java Yes
application/x-java-applet;version=1.4 Java Yes
application/x-java-applet;version=1.4.1 Java Yes
application/x-java-applet;version=1.4.2 Java Yes
application/x-java-applet;version=1.5 Java Yes
application/x-java-applet;version=1.6 Java Yes
application/x-java-applet;jpi-version=1.6.0_01 Java Yes
application/x-java-bean Java Yes
application/x-java-bean;version=1.1 Java Yes
application/x-java-bean;version=1.1.1 Java Yes
application/x-java-bean;version=1.1.2 Java Yes
application/x-java-bean;version=1.1.3 Java Yes
application/x-java-bean;version=1.2 Java Yes
application/x-java-bean;version=1.2.1 Java Yes
application/x-java-bean;version=1.2.2 Java Yes
application/x-java-bean;version=1.3 Java Yes
application/x-java-bean;version=1.3.1 Java Yes
application/x-java-bean;version=1.4 Java Yes
application/x-java-bean;version=1.4.1 Java Yes
application/x-java-bean;version=1.4.2 Java Yes
application/x-java-bean;version=1.5 Java Yes
application/x-java-bean;version=1.6 Java Yes
application/x-java-bean;jpi-version=1.6.0_01 Java Yes


Shockwave Flash

File name: libflashplayer.so
Shockwave Flash 9.0 r31

MIME Type Description Suffixes Enabled
application/x-shockwave-flash Shockwave Flash swf Yes
application/futuresplash FutureSplash Player spl Yes

Last edited by ferao; 05-09-2007 at 07:18 PM.
 
Old 05-10-2007, 12:05 AM   #8
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
I looked back through my action logs, and it seems that I originally installed jre-6u1-linux-i586 from sun when I upgraded to Mandriva 2007.1 (Spring). I had too much trouble with applets not working on WEB sites, etc., so I reverted to jre-1_5_0_11-linux-i586 and all has been working well since.

I attributed the troubles at that time to be related to the newness of the java version, but by now I would think that most sites would have fixed their applets. I never ran sun's Java test applet with that version, but I would expect it to succeed. If I were in your position at this time, I would remove jre-6u1-linux-i586 and replace it with jre-1_5_0_11-linux-i586. If your applets work after the change, you could submit a bug report to sun (unless one has already been submitted). I am not a member of their development community so I do not know their bug reporting procedure, but it should not be too hard to figure out.

HTH,
 
Old 05-10-2007, 05:38 AM   #9
ferao
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, now I have solved it. Unfortunately I didn't understand what was bad.
I simply removed the java package I downloaded from the official site, and I installed the package java-1.6.0-sun (from the non-free sources of the i586 version of Mandriva Spring) via urpmi.
Now everything works.

Thank you very much to you all for your attempts.
 
Old 05-10-2007, 05:37 PM   #10
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Go figure that it is usually the software packaged by the distributor that works. I may have to give it a try too. Thank you for the update
 
  


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 installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Cannot get java plugin to work with firefox mike_savoie Ubuntu 5 09-13-2006 05:12 PM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 04:09 PM
Java/Firefox java plugin not working with HP Webjetadmin iamskykid Linux - Software 2 03-02-2006 02:38 PM
firefox / java plugin Anne H Linux - Software 4 02-16-2006 02:19 PM


All times are GMT -5. The time now is 01:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration