LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-18-2007, 05:01 AM   #1
Prada
Member
 
Registered: Apr 2007
Distribution: Xubuntu Hardy Heron(8.04)
Posts: 54

Rep: Reputation: 15
Java on firefox


I have followed every step I found online to get java applets to work on firefox.

Code:
ln: creating symbolic link `./libjavaplugin_oji.so' to `/usr/java/j2re1.5.0_10/plugin/i386/ns610-gcc32/libjavaplugin_oji.so': File exists
Firefox has java enabled checked.

I still get the icon to install missing plugins, and it takes me to the java website...
 
Old 04-18-2007, 05:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what directory are you running that in? show us the output of "ls -l" right after you run that.
 
Old 04-18-2007, 01:26 PM   #3
Prada
Member
 
Registered: Apr 2007
Distribution: Xubuntu Hardy Heron(8.04)
Posts: 54

Original Poster
Rep: Reputation: 15
I follow these directions:

Quote:
Linux

Firefox is compiled with gcc 3.2.3, so a compatible version of the Java plugin must be used. On Linux, Firefox requires JRE 1.4.2 or later.

If you installed the JRE 1.5.0_10 RPM, this plugin is /usr/java/j2re1.5.0_10/plugin/i386/ns610-gcc32/libjavaplugin_oji.so and to install it for Firefox, do the following:

1. Open a terminal
2. Change to your Firefox plugins directory
3. Issue the following command: ln -s /usr/java/j2re1.5.0_10/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

If you are using an older Linux distribution, you may need to install the gcc3 support libraries, as the gcc 3.2 version of the Java plugin requires libgcc_s.so.1 to operate. You may be able to find packages using Google.

If you are using an old or unofficial build of Firefox, you can check which compiler was used by entering about:buildconfig in the location bar and pressing enter. You will see a line such as gcc version 3.3 20030226 (prerelease) (SuSE Linux), which will show the compiler that was used. If gcc2.9x was used, you need to use the ns610 plugin, not the ns610-gcc32 plugin.

I went to usr/lib/mozilla and did
Code:
ln -s /usr/java/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so
Since I deleted the other libjavaplugin_oji.so I was able to overwrite it.


The good news: I am not getting the "plug-in required" icon..
The bad news: Java applets still dont work.


I followed the directions on that site, after I installed jre 1.6.01. should I try reinstalling?


Also, firefox is showing this in About:Plugins

Quote:

ava(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

And finally, about:buildconfig

Quote:
about:buildconfig

Build platform
target
i686-pc-linux-gnu

Build tools
Compiler Version Compiler flags
gcc gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -pthread -pipe

Last edited by Prada; 04-18-2007 at 01:31 PM.
 
Old 04-18-2007, 08:53 PM   #4
Prada
Member
 
Registered: Apr 2007
Distribution: Xubuntu Hardy Heron(8.04)
Posts: 54

Original Poster
Rep: Reputation: 15
--> Bump

Plz help <--
 
Old 04-18-2007, 11:01 PM   #5
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Those outputs look right to me. What distro are you using here? And when you go to THIS site, what happens? Do you see Dancing Duke, the Java mascot?

Last edited by vtel57; 04-18-2007 at 11:02 PM.
 
Old 04-18-2007, 11:18 PM   #6
Prada
Member
 
Registered: Apr 2007
Distribution: Xubuntu Hardy Heron(8.04)
Posts: 54

Original Poster
Rep: Reputation: 15
When i go there I literally get nothing. It is just blank where the applet should be.

I am running Fedora Core 6 i386
 
Old 04-18-2007, 11:46 PM   #7
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
I seem to remember getting Java to work in my FC6 was a pain in the behind also. I used this tutorial from THIS site to finally get mine working:

Quote:
Install Java J2RE and Mozilla Plug-in
It's also very handy to have the Java run-time environment available and most importantly a Mozilla plug-in so you can view dynamic content. It's unfortunate that Mozilla will actually crash if you go to a site containing Java and you don't have the plug-in installed.

For now there is no easy way to do this but I found the following instructions on FedoraForums.org. Basically, start by downloading the Java Runtime Environment (JRE) 5.0 Update 9 (at the time I wrote this) from Sun.com. You'll want to grab the Linux RPM in self-extracting file. Then you want to install it with:

# sh ./jre-1_5_0_09-linux-i586-rpm.bin

Then you'll probably want to enable Java Plug-ins and here once again there is no easy way:

# ln -s /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins

And finally you'll need to tell Fedora that you wish to use this version of Java as the preferred interpreter rather than the Open Source version that's installed by default. You'll of course need to adjust the full pathname if you install a newer version of the jre than the one in this example:

Code:
# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.5.0_09/bin/java 1509
# java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b05)
Java HotSpot(TM) Client VM (build 1.5.0_09-b05, mixed mode, sharing)
 
Old 04-19-2007, 10:54 AM   #8
Prada
Member
 
Registered: Apr 2007
Distribution: Xubuntu Hardy Heron(8.04)
Posts: 54

Original Poster
Rep: Reputation: 15
I did what you said, only changing to ver 1.6, no luck



# sh ./jre-1_6u1_linux-i586-rpm.bin
Quote:
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u1-linux-i586.rpm
Preparing... ########################################### [100%]
package jre-1.6.0_01-fcs is already installed
# ln -s /usr/java/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins
# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.6.0_01/bin/java 1601
# java -version
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)
 
Old 04-19-2007, 12:14 PM   #9
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Hmm... this is a strange one. I wonder if there are some problems with the 1.6 build of Sun Java. Maybe you should remove it from your system and try to reinstall with a n older version. I run 1.5 on all my distros. FC and Mandriva gave me problems during installation, but I eventually worked it out.

Keep this thread active. Someone will know how to get this fixed for you.

Luck!

~Eric
 
Old 04-19-2007, 03:00 PM   #10
Prada
Member
 
Registered: Apr 2007
Distribution: Xubuntu Hardy Heron(8.04)
Posts: 54

Original Poster
Rep: Reputation: 15
Well 1.5.09 was what was installed on it... Firefox didn't even recognize it before(gave me the plugin required icon)
 
Old 04-19-2007, 03:52 PM   #11
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Just out of curiosity... are you downloading and installing the entire JDK or are you just downloading and installing JRE?
 
Old 04-19-2007, 06:40 PM   #12
Prada
Member
 
Registered: Apr 2007
Distribution: Xubuntu Hardy Heron(8.04)
Posts: 54

Original Poster
Rep: Reputation: 15
JRE.. many clues to this:

Quote:
# java -version
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)

# sh ./jre-1_6u1_linux-i586-rpm.bin
 
Old 04-19-2007, 07:34 PM   #13
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Yes. That was pretty obvious. Sorry.

Are you, by any chance, running a 64 bit version of FC? If so, are you running the 64 bit version of Firefox also (2.0). The reason I ask is because Java (and most other plugins) will NOT work on 64 bit versions of FF. I see that you installed the 32 bit i586 version of Java. However, that doesn't mean you're running a 32 bit Fedora. I just have to ask. I'm trying to help you figure this out. The more we know, the easier it'll be for me or others here to help you.

Standing by...
 
Old 04-19-2007, 10:29 PM   #14
Prada
Member
 
Registered: Apr 2007
Distribution: Xubuntu Hardy Heron(8.04)
Posts: 54

Original Poster
Rep: Reputation: 15
It is 32 bit Fedora I made sure. I burned both not knowing which was compatible and the 64bit will not even install(told me to download the 32bit version)
 
Old 04-19-2007, 11:09 PM   #15
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Ah... OK. Well, sadly, I've run out of ideas. I'm hopeful that someone else may pop in here with some suggestions for you. I'll keep an eye on the thread. I'm curious to see what the problem was.

I've alerted a Moderator to this thread. Hopefully, someone can offer you some more advice.

Luck!

Last edited by vtel57; 04-19-2007 at 11:16 PM.
 
  


Reply



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
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 and Java DaBlade Linux - Software 1 12-23-2004 08:09 PM
Java with Firefox... soupatech Linux - Software 4 08-09-2004 04:05 AM

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

All times are GMT -5. The time now is 11:46 PM.

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