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 03-04-2006, 05:19 AM   #1
Cony
LQ Newbie
 
Registered: Oct 2005
Location: Belgium
Posts: 5

Rep: Reputation: 0
java on Fedora Core 4


hi folks,

i installed j2re1.4.2 from the java.sun.com pages on my fedora core 4, made the symb link like:
ln -s/usr/local/j2re1.4.2_07/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-1.0.4/plugins/libjavaplugin_oji.so

but when i try then to run the Java Plug-in ControlPanel and the policytool, i got the following error:

[root@localhost bin]# ls
ControlPanel java_vm kinit ktab policytool rmiregistry tnameserv
java keytool klist orbd rmid servertool
[root@localhost bin]# ./ControlPanel
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/j2re1.4.2_07/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 sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
[root@localhost bin]# ./policytool
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/j2re1.4.2_07/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 sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
at sun.security.tools.PolicyTool.main(Unknown Source)

when i run ./usr/local/j2re1.4.2_07/lib/i386/libawt.so
i get the message : "segmentation error"

what can be the problem, looked at similar threads but did not find the solution !!?????
can u help me?

Cony
 
Old 03-04-2006, 10:11 AM   #2
LLS
Member
 
Registered: Sep 2003
Location: North America
Distribution: FC6 FC7 F8
Posts: 75

Rep: Reputation: 15
Did you try the link to mozilla plugins?
Code:
ln -s /usr/java/jre1.5.0_04/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
 
Old 03-04-2006, 01:25 PM   #3
Cony
LQ Newbie
 
Registered: Oct 2005
Location: Belgium
Posts: 5

Original Poster
Rep: Reputation: 0
as you can see in my link i use mozilla firefox 1.0.4, so that's not the reason

somebody??
Cony
 
Old 03-04-2006, 03:57 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally Posted by Cony
as you can see in my link i use mozilla firefox 1.0.4, so that's not the reason
All Mozilla browsers use the /usr/lib/mozilla/plugins, so that is a better place to link stuff.

But anyway, I think you should remove the Java you installed. Java packages, especially the RPMs from Sun, are very screwed up and conflict with lots of stuff in Linux. You should try to install Java 1.5 with these instructions
 
Old 03-06-2006, 09:04 PM   #5
LLS
Member
 
Registered: Sep 2003
Location: North America
Distribution: FC6 FC7 F8
Posts: 75

Rep: Reputation: 15
Been using it for months.

[larry@0000000 ~]$ /usr/sbin/alternatives --display java
java - status is manual.
link currently points to /opt/jdk1.5.0_06/bin/java
/opt/jdk1.5.0_06/bin/java - priority 3
slave rmiregistry: (null)
slave jre_exports: (null)
slave jre: (null)
/opt/jre1.5.0_06/bin/java - priority 2
slave rmiregistry: (null)
slave jre_exports: (null)
slave jre: (null)
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420
slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry
slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj
slave jre: /usr/lib/jvm/jre-1.4.2-gcj
Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.

[larry@00000000~]$ rpm -q firefox
firefox-1.0.7-1.2.fc4

[larry@00000000 ~]$ ls -l /usr/lib/mozilla/plugins
total 0
lrwxrwxrwx 1 root root 53 Dec 6 12:26 libjavaplugin_oji.so -> /opt/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so
[larry@chefsheck ~]$
 
Old 03-07-2006, 08:56 AM   #6
Cony
LQ Newbie
 
Registered: Oct 2005
Location: Belgium
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

Thanks alot spooon and LLS, works perfect, what i wanted is ok
thank you, dank u

Cony
 
  


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 on Fedora core 4 shabbirhai Programming 1 01-24-2006 10:52 AM
How to run java in Fedora core 3 gjo Fedora 2 10-02-2005 03:18 AM
Java & Fedora Core 4 Rick069 Linux - Software 6 09-22-2005 03:49 AM
no java while using firefox on fedora core 3 linuxmandrake Linux - Software 1 06-19-2005 12:40 AM
Java installation on Fedora Core mfwlinuxhome Linux - Newbie 25 05-09-2004 11:03 PM

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

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