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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-04-2006, 05:19 AM
|
#1
|
LQ Newbie
Registered: Oct 2005
Location: Belgium
Posts: 5
Rep:
|
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
|
|
|
03-04-2006, 10:11 AM
|
#2
|
Member
Registered: Sep 2003
Location: North America
Distribution: FC6 FC7 F8
Posts: 75
Rep:
|
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
|
|
|
03-04-2006, 01:25 PM
|
#3
|
LQ Newbie
Registered: Oct 2005
Location: Belgium
Posts: 5
Original Poster
Rep:
|
as you can see in my link i use mozilla firefox 1.0.4, so that's not the reason
somebody??
Cony
|
|
|
03-04-2006, 03:57 PM
|
#4
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
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
|
|
|
03-06-2006, 09:04 PM
|
#5
|
Member
Registered: Sep 2003
Location: North America
Distribution: FC6 FC7 F8
Posts: 75
Rep:
|
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 ~]$
|
|
|
03-07-2006, 08:56 AM
|
#6
|
LQ Newbie
Registered: Oct 2005
Location: Belgium
Posts: 5
Original Poster
Rep:
|
Thanks alot spooon and LLS, works perfect, what i wanted is ok
thank you, dank u
Cony 
|
|
|
All times are GMT -5. The time now is 11:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|