Fedora This forum is for the discussion of the Fedora Project. |
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.
|
|
06-18-2005, 03:48 PM
|
#1
|
Member
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502
Rep:
|
FC4, Firefox 1.0.4 and JRE 1.4.2
Ok, I have never had this problem before. I have always been able to get java working with Firefox.
This is what I am doing and the results.
I make a symbolic link from /usr/java/j2re1.4.2_08/plugin/i386/ns4/libjavaplugin.so /usr/lib/firefox-1.0.4/plugins
Java doesn't work.
So I deleted that symbolic link and did this.
ln -s /usr/java/j2re1.4.2_08/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/firefox-1.0.4/plugins
Now my browser doesn't work, it won't even start. So I delete that symbolic link and I type in
ln -s /usr/java/j2re1.4.2_08/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/firefox-1.0.4/plugins.
Now when I try to access something online that I need java for the browser shuts down.
I am lost on what to do. I just installed this with a few other distros the same way I tried it with FC4 and I had no problems, I never had any problems like this. What am I missing? Or does anyone think there may be another problem here? If so what should I do?
Thanks
By the way I installed the flash plugins without any problems
Webwolf
|
|
|
06-18-2005, 04:08 PM
|
#2
|
Member
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502
Original Poster
Rep:
|
By the way I wanted to add that I installed the binary first, then I deleted that and installed the rpm.bin one. Same results on both.
Webwolf
|
|
|
06-18-2005, 04:15 PM
|
#3
|
Member
Registered: Dec 2004
Location: Denmark
Distribution: Yoper 2.2, Source Mage, Ubuntu 5.04, Slackware 10.1
Posts: 70
Rep:
|
I know it might sound stupid but you say that you write
Code:
/usr/java/j2re1.4.2_08/plugin/i386/ns4/libjavaplugin.so /usr/lib/firefox-1.0.4/plugins
Doesn't that make a link called plugins instead of a link in the folder /usr/lib/firefox-1.0.4/plugins.
I would say that you should try
Code:
/usr/java/j2re1.4.2_08/plugin/i386/ns4/libjavaplugin.so /usr/lib/firefox-1.0.4/plugins/
instead.
|
|
|
06-18-2005, 04:19 PM
|
#4
|
Member
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502
Original Poster
Rep:
|
I see what you mean. But writing it either way gets me a symbolic link in the firefox plugins folder. It just doesn't want to work.
Webwolf
|
|
|
06-18-2005, 06:37 PM
|
#5
|
Member
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82
Rep:
|
Theres a thread going around where you need to run the alternatives --config java command. I had the same exact prob as you and this fixed it...Do a search
dareino
|
|
|
06-18-2005, 07:18 PM
|
#6
|
Member
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502
Original Poster
Rep:
|
I did a search before I posted this and one right now. Somehow I am missing that post.
Webwolf
|
|
|
06-18-2005, 09:19 PM
|
#7
|
Member
Registered: Mar 2004
Distribution: Fedora Core 3, Arch Linux 0.7
Posts: 57
Rep:
|
First off, anytime you install a new version of an OS you really should read the release notes for that version, Had you read the release notes, you would have found Fedora's recommendation for Java. Here is a direct quote from said release notes:
Quote:
6.1.8. Java Package Recommendations
Fedora Core 4 users are advised not to use the Java RPM provided by Sun. It contains Provides that conflict with names used in packages provided as part of Fedora Core 4. Because of this, Sun Java might disappear from an installed system during package upgrade operations.
Fedora Core 4 users should use either the RPM from jpackage.org or manually install the Sun Java tarball into /opt. Sun Java 1.5+ is recommended for stability purposes.
|
It says to use Sun Java 1.5+, to use the bin file not the rpm, and most importantly you now need to install Java in the /opt directory, not the /usr directory as before. You then end up with a link such as:
ln -s /opt/java/re1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so
I did everything as stated in the release notes, and still had problems. The only way I can get Java to work, is to disable SELinux. As root, and you have to use su - not just su, enter the command
setenforce 0
and that will temporarily (until next boot) disable SELinux. Java will then work for me. Issue the command
setenforce 1
and turn SELinux back on, and Java stops working.
Hope that helps.
Pudge
Last edited by Pudge; 06-18-2005 at 09:26 PM.
|
|
|
06-18-2005, 11:33 PM
|
#8
|
Member
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502
Original Poster
Rep:
|
Wow. So everytime you boot Fedora you have to disable SELinux. That sounds a bit irratating. I never had any problem with any other distro, including BSD with Java like that. I think I may just wait on Fedora for now. It has some great points but I am busy with other things and I don't feel like having to disable whatever everytime I boot. I wonder if that is the only problem they have. Well right now I am having a ball with PC-BSD so I think I will get back to that. Thanks for the reply.
Webwolf
|
|
|
06-19-2005, 03:08 AM
|
#9
|
LQ Newbie
Registered: Jan 2005
Location: Pont-de-Buis-Lès-Quimerc'h, France
Distribution: FC4 Final
Posts: 21
Rep:
|
Try using the jdk 1.5.0_03, unless you really have to use the 1.4.2
Also, avoid using the rpm file, a lot a people seem to have problems with it. Use the bin executable which is also directly available for download.
|
|
|
06-19-2005, 03:11 AM
|
#10
|
LQ Newbie
Registered: Jan 2005
Location: Pont-de-Buis-Lès-Quimerc'h, France
Distribution: FC4 Final
Posts: 21
Rep:
|
Oh and by the way, if you have a /i386/ns7 folder down in the jre, use the libjavaplugin_oji.so that is there, instead of using the one under ns61.
|
|
|
06-19-2005, 12:25 PM
|
#11
|
Member
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82
Rep:
|
Like I said above, there was a thread going around, not even sure it was in this forum but this is what I ran and my Java works fine now
[root@darco /]# alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
* 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
+ 2 /usr/lib/java/jre1.5.0_03/bin
Enter to keep the current selection[+], or type selection number: +
I cant explain exactly what occured but Java works fine now
dareino
|
|
|
06-19-2005, 01:13 PM
|
#12
|
Member
Registered: Sep 2003
Location: At a tea party with Alice in Wonderland.
Distribution: Fedora 7
Posts: 65
Rep:
|
To turn selinux off, not just temporarily, edit:
/etc/selinux/config
just change SELINUX=enabled to SELINUX=disabled
Personally, I get "permission denied" when I try to log in with selinux enabled, including with the root account:P
|
|
|
All times are GMT -5. The time now is 02:55 PM.
|
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
|
|