LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-18-2005, 03:48 PM   #1
webwolf70
Member
 
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502

Rep: Reputation: 30
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
 
Old 06-18-2005, 04:08 PM   #2
webwolf70
Member
 
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502

Original Poster
Rep: Reputation: 30
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
 
Old 06-18-2005, 04:15 PM   #3
kimx
Member
 
Registered: Dec 2004
Location: Denmark
Distribution: Yoper 2.2, Source Mage, Ubuntu 5.04, Slackware 10.1
Posts: 70

Rep: Reputation: 16
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.
 
Old 06-18-2005, 04:19 PM   #4
webwolf70
Member
 
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502

Original Poster
Rep: Reputation: 30
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
 
Old 06-18-2005, 06:37 PM   #5
dareino
Member
 
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82

Rep: Reputation: 15
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
 
Old 06-18-2005, 07:18 PM   #6
webwolf70
Member
 
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502

Original Poster
Rep: Reputation: 30
I did a search before I posted this and one right now. Somehow I am missing that post.


Webwolf
 
Old 06-18-2005, 09:19 PM   #7
Pudge
Member
 
Registered: Mar 2004
Distribution: Fedora Core 3, Arch Linux 0.7
Posts: 57

Rep: Reputation: 15
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.
 
Old 06-18-2005, 11:33 PM   #8
webwolf70
Member
 
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502

Original Poster
Rep: Reputation: 30
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
 
Old 06-19-2005, 03:08 AM   #9
aspirant_nono
LQ Newbie
 
Registered: Jan 2005
Location: Pont-de-Buis-Lès-Quimerc'h, France
Distribution: FC4 Final
Posts: 21

Rep: Reputation: 15
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.
 
Old 06-19-2005, 03:11 AM   #10
aspirant_nono
LQ Newbie
 
Registered: Jan 2005
Location: Pont-de-Buis-Lès-Quimerc'h, France
Distribution: FC4 Final
Posts: 21

Rep: Reputation: 15
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.
 
Old 06-19-2005, 12:25 PM   #11
dareino
Member
 
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82

Rep: Reputation: 15
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
 
Old 06-19-2005, 01:13 PM   #12
Starchild
Member
 
Registered: Sep 2003
Location: At a tea party with Alice in Wonderland.
Distribution: Fedora 7
Posts: 65

Rep: Reputation: 15
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
 
  


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
Firefox browser and jre problem anindyanuri Linux - Software 17 10-31-2005 09:29 PM
firefox 1.0.4 / jre 1.4.1_02 undef00 Linux - Software 7 08-11-2005 05:18 PM
linking JRE 5.0 to firefox and limewire rpmheadache Linux - Software 16 02-21-2005 12:05 PM
jre blips out Firefox dfowensby Fedora 1 01-26-2005 01:48 AM
Firefox and JRE merchtemeagle Linux - Newbie 3 10-17-2004 09:37 AM

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

All times are GMT -5. The time now is 02:55 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
Open Source Consulting | Domain Registration