LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-15-2004, 02:53 PM   #16
dmj
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0

Bryant,

When you re-installed j2re1.4.2_05:

- which library did you link to from the /usr/lib/firefox-1.0/plugins directory?

- did you add the /usr/java/j2re1.4.2_05/bin to your path?

Thanks,
Dean
 
Old 11-15-2004, 04:25 PM   #17
pandasonic
Member
 
Registered: Nov 2003
Location: Bronx, NY
Distribution: Fedora Core 3
Posts: 53

Original Poster
Rep: Reputation: 15
Dean,

The answer to your first question:
I linked /usr/java/j2re1.4.2_05/plugin/i386/ns610-gcc32

Answer for number two:
Didn't do that... I'm clueless about the path thing... I still got a lot to learn about Linux.. so if you could please tell me what you mean by the Path and all that I would greatly appreciate it...
the only thing i know about java related to the worth 'path' is when i tried installing Limewire and i found a website saying that i had to put the jvm on its path and such.. i did that and it worked.. but i still don't know what the whole business was about

Thanks,
Bryant
 
Old 11-15-2004, 11:56 PM   #18
cryptwizard
Member
 
Registered: Aug 2004
Location: Sydney, Australia
Distribution: Debian Squeeze
Posts: 49

Rep: Reputation: 15
Install the latest version of firefox (1.0):
"yum install firefox"
then do "rpm --freshen " and add at the end the path yum gave you after obtaining the package.

Firstly, get JRE 1.5 from:
http://java.sun.com/j2se/1.5.0/download.jsp
select J2SE 5.0 JRE, agree, then select under Linux, rpm in self-extracting file.
Extract the file by doing "sh jdk-1_5_0-linux-i586-rpm.bin" from the folder the downloaded file is in.
Now install the rpm by doing "rpm --freshen jdk-1_5_0-linux-i586-rpm.bin".
Make a link the the firefox plugin directory by doing (assumes firefox 1.0):
"ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-1.0/plugins/"

Should all work now.
 
Old 11-18-2004, 04:13 PM   #19
dmj
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0
cryptwizard,

Does this fix the missing "libXp.so.6" issue? Background below -

I have Firefox 1.0 installed, and updated per the up2date function in Fedora CORE 3. I have been using installing all three JRE packages per their exact instructions (j2re-1_4_2_06-linux-i586-rpm and jdk-1_5_0-linux-i586-rpm). I have been creating the same link you and the instructions give, as well. The problem seems to come from a missing set of libraries that have been deprecated: libXp.so.6. My research has turned up some Redhat bug reports that confirm that this libreary is not installed with Fedora CORE 3.

Firefox will not even start with the jdk-1_5_0-linux-i586-rpm installed.

With the older jre 1.4.2, I can start firefox, but not load pages with java...

When I try to run firefox using the command line below, it blows up with the following error messages:

- link to library is for the gcc32.
- trying from command line "firefox www.dslreports.com/stest?loc97"
- browser won't load and delivers the following message:

"Java process: caught exception from sun.plugin.navig.motif.Plugin.start
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/usr/java/j2re1.4.2_06/lib/i386/libawt.so: libXp.so.6: cannot open shared object
file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Unknown Source)
at java.awt.Toolkit.<clinit>(Unknown Source)
at java.awt.Color.<clinit>(Unknown Source)
at sun.plugin.navig.motif.Plugin.start(Unknown Source)
INTERNAL ERROR on Browser End: Could not read ack from child process
System error?:: Resource temporarily unavailable"

I'll retrace my steps and use the procedure you outlined, and report results... I need to learn more about yum. I never used any Yellowdog material before.
 
Old 11-18-2004, 05:06 PM   #20
dmj
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0
cryptwizard,

Results of "yum install firefox": message "nothing to do". (I was holding out for some magic Xlib update...)

Not sure what to do with finding the path you referred to.
I re-installed JRE 1.5.0, and created the link you showed... AND IT WORKS!

Thanks! As far as I can tell, I must have previously used the ns7-gcc29 version of the libjavaplugin_oji.so link.
 
Old 11-18-2004, 05:26 PM   #21
dmj
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0
Bryant,

Path is similar to the DOS and Windows Path in that it is a list of locations to look in for executables that may not be found in the current directory.

For *nix, at a shell prompt, type "echo $PATH[Enter]" and you should get the current path as a response. As the root user, most *nix releases do not include the current directory (known as ".") in the path, so it is different from DOS/Windows. In Windows you can echo the contents of PATH by getting to a command prompt and issuing the command "echo %PATH%". Another difference between *nix and Windows is that the path items are separated by a colon in *nix, and by a semicolon in Windows.

If you want to add something to the current path, a quick way is to issue the following command at the BASH shell prompt "$PATH=/full/new/path/:$PATH" This tells the BASH shell to add /full/new/path to the beginning of the entire original $PATH.

When you set your machine up for java development, you need to put java into the path so scripts and applications can find it. You can do that for your own user by adding a line to that user's .bashrc. If you want to update everybodies path, edit /etc/bashrc to add a line before the "export PATH USER LOGNAME..." line.

Last edited by dmj; 11-18-2004 at 05:32 PM.
 
Old 11-27-2004, 02:35 AM   #22
shanemac
LQ Newbie
 
Registered: Nov 2004
Location: Victoria, BC
Posts: 1

Rep: Reputation: 0
There is only one solution for the type of problem DMJ is having - I went through the same stuff cashing my tail for a week... if you do not select a package that installs xorg-x11-deprecated-libs-6.8.1-12.i386.rpm from DISC #2 of the fedora installation, then you'll have the same problem that DMJ had and as did I... this package contains libXp.so.6 ...the Java VM needs it to run...

link the plugin as descripbed before, and then install the above package.

Java and flash should work from now on....

enjoy
 
  


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
Java in firefox? microsoft/linux Linux - Laptop and Netbook 7 12-04-2005 10:30 PM
firefox 1.6 and java linuxmandrake Linux - Software 4 12-04-2005 09:38 PM
Firefox 1.0 and java redrobin77 Red Hat 3 03-27-2005 04:11 AM
Still trying to get Java into firefox Travis Huey Linux - Newbie 5 02-23-2005 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:20 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