LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2006, 12:48 PM   #1
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Fedora 22, CentOS
Posts: 169

Rep: Reputation: 15
I can't run Java on Firefox 2.0


Here's what I've been trying to do.
1. Go to NIST.GOV to figure out what time it is (using Firefox 2.0). This requires Java if you want to see the pretty pictures.
2. I clicked on "Install missing plugin" which took me, sooner or later, to the Java website. I downloaded the most recent version for Linux, choosing the RPM thing over the self extracting thing.
3. I followed the bouncing ball in the Java instructions. Everything seemed OK as I installed the RPM successfully.
4. The last step is where you link some file in firefox/plugins to the one in java/plugin. This is where things get totally hosed. Either it says the file I'm trying to link to does not exist, or the link file is already there. However, when I look for the file I'm trying to link to in file browser, it's there, and when I look at the already there link file, the link is always broken.
5. Pound my head against the wall until I don't care about firefox or plugins....

I've tried to do this every way I can think of, including removing the RPM and reinstalling, removing the link file and starting over, trying to link to the file in ns610 instead of ns7. It does not matter if I su or log in as root. Every time I restart Firefox, I still get "click here to install missing plugin". <THUNK!> (Head hits the wall again.)

I also searched LQ for "firefox java" but didn't see any thread titles on the first page or so of results that seemed to cover this topic.

The instructions on the Java website are a little out of date. The enable Java button is now under Edit->Preferences->Content instead of Edit->Preferences->Advanced.

When I file search for "libjavaplugin", starting at / and following links, here's what I get.
file:///usr/lib/jre/plugin/i386/ns4/libjavaplugin.so
file:///usr/lib/jre/plugin/i386/ns610/libjavaplugin_oji.so
file:///usr/lib/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
file:///usr/lib/jre/lib/i386/libjavaplugin_jni.so
file:///usr/lib/netscape/plugins/libjavaplugin.so

However, when I look at /usr/java/jre1.5.0_05/plugin/i386/ns7 using the file browser, the only file listed is:
file:///usr/java/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so
It says it is 131 KB and the type is shared library. So how come this doesn't get listed with the other libjavaplugin files when I file search?

Further, when I find the linked file in /usr/lib/firefox/plugins and the link is broken, if I click on it, the file disappears from the list, although ls shows it still there. <THUNK!>

Here's the link command I'm trying to use:
ln -s /usr/java/jrel.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins/libjavaplugin_oji.so

Can anyone please suggest something before my head or the wall breaks? Thanks in advance!
 
Old 11-12-2006, 01:04 PM   #2
breman
LQ Newbie
 
Registered: Aug 2003
Posts: 27

Rep: Reputation: 15
check and see if there is a hidden mozilla folder in your home directory. if so link the java plugin to the .mozilla/plugins/ folder.
 
Old 11-12-2006, 01:46 PM   #3
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Fedora 22, CentOS
Posts: 169

Original Poster
Rep: Reputation: 15
Thanks for the suggestion. I tried it. Still "Click here to download plugin."
<THUNK!>

Last edited by tnandy; 11-12-2006 at 01:47 PM.
 
Old 11-16-2006, 07:47 AM   #4
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Fedora 22, CentOS
Posts: 169

Original Poster
Rep: Reputation: 15
Unhappy Java is still broken

I appreciate any and all assistance!
 
Old 01-06-2007, 11:45 AM   #5
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Rep: Reputation: 15
In general, you just download the Java JRE or JDK from the java webpage:
http://www.java.com/en/download/manual.jsp

and install it. Download - save somewhere - chmod u+x filename - ./filename (for the self extracting bin), or rpm -Uvh filename.rpm (for the rpm download).

Then, figure out where it installed (if you have to cd / ; find | grep java or whatever). That should contain the java, javaws, and all that other stuff. The plugin'll be in
[install location]/jdk/jre/plugin/i386/ns7/

Find out where your browser is (/usr/lib/firefox-2.0/ ??) and go in there, then into the plugins directory.
Remember, the simplest way to do a symlink and not screw it up is to always BE IN THE DIRECTORY WHERE YOU ARE CREATING THE SYMLINK, and to use this syntax:

Code:
cd /where/your/symlink/will/be/
ln -s [thing that already exists] [never put anything here]
Which will create the symlink in the current directory (this is why the java install instructions always say "DON'T FORGET THE LAST PERIOD"... it means "here, in this directory". It's not needed. Promise.

So, then:
Code:
cd /usr/lib/firefox-2.0/plugins 
ln -s [java install directory]/jre/plugin/i386/ns7/libjavaplugin_oji.so
 
Old 01-06-2007, 12:57 PM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
The Unofficial Fedora FAQ
http://www.fedorafaq.org/#java

Detailed directions ^^^^^^^^
 
  


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 03:13 AM
Firefox didn't run after Firefox 2 installation nightrider Linux - Newbie 15 04-03-2008 11:24 PM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 05:09 PM
Java/Firefox java plugin not working with HP Webjetadmin iamskykid Linux - Software 2 03-02-2006 03:38 PM
Java applets run fine in Konqueror, but won't run in MS IE. OAnimal Linux - Software 7 12-04-2002 07:32 AM


All times are GMT -5. The time now is 12:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration