LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 06-17-2005, 05:11 PM   #1
if050204
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Rep: Reputation: 0
Question FC4 and JAVA


Hi
I just download FC4 (my first Linux distro) and I want to know how to make JAVA work with Firefox 1.0.4. I saw the the recommendation about the RPM on the Fedora Release Note. So, please, can someone tell me the step by step procedure to first, get the good version of Java and second, how do I install it and make it work for Firefox.

Thanks
 
Old 06-17-2005, 05:46 PM   #2
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 30
Hello and welcome to LinuxQuestions!

Download this version of JRE.
Because many had problems with the rpm file, take the jre-1_5_0_03-linux-i586.bin.
Become root: su
Copy file to /usr/local/Java: cp jre-1_5_0_03-linux-i586.bin /usr/local/Java
Go there: cd /usr/local/Java.
Give execution rights with: chmod +x jre-1_5_0_03-linux-i586.bin
Start installation with: ./jre-1_5_0_03-linux-i586.bin
Now make a symbolic link of the plugin file to Firefox's plugins.
For this example we assume your Firefox install dir is /usr/lib/firefox-1.0.4/ and JRE is installed in /usr/local/Java/jre1.5.0_03/:
Code:
ln -s /usr/local/Java/jre1.5.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-1.0.4/plugins/libjavaplugin_oji.so
If you have other folders just change them.

Good luck!

Boby
 
Old 06-17-2005, 06:23 PM   #3
if050204
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Still not working

Thanks for your fast respond.

I still have a problem. When I go to a site the requires JAVA, I don't get the bar saying that I do not have the plugin(We are going in the right direction) but I can't see the Java animation.
 
Old 06-17-2005, 07:31 PM   #4
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 30
Quote:
I do not have the plugin(We are going in the right direction) but I can't see the Java animation.
Are you sure that requires Java-VM? Maybe you have to wait longer for the animation to load.
Try these Java test pages:
http://javatester.org/version.html
http://www.michaelhorowitz.com/javatester.results.html

Boby
 
Old 06-17-2005, 07:46 PM   #5
if050204
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Original Poster
Rep: Reputation: 0
5 minutes later

5 minutes later I still don't see anything. It doesn't tell me that I do not have the plugin.

Is there another good web browser that I could use if Firefox doesn't work.
 
Old 06-17-2005, 08:04 PM   #6
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 30
Please type in Firefox about:plugins so you'll know if the Java VM plugin is installed correctly.

Can you provide the "ln -s ..." command you used?
Maybe you can try ln -sf /usr/local/Java/jre1.5.0_03/plugin/i386/ns7-gcc29/libjavaplugin_oji.so /usr/lib/firefox-1.0.4/plugins/libjavaplugin_oji.so

Quote:
Is there another good web browser that I could use if Firefox doesn't work.
Yes, Mozilla, Opera and Konqueror. But it should run with Firefox just fine.

Boby
 
Old 06-17-2005, 08:46 PM   #7
if050204
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I used the ln -s that is on the second post. I simply copy/paste.

What do you mean by "Please type in Firefox about lugins"
 
Old 06-18-2005, 06:10 AM   #8
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 30
Quote:
I used the ln -s that is on the second post. I simply copy/paste.
Are your folders just the same like the ones of my example? If not, change the command. So please check that.
Quote:
What do you mean by "Please type in Firefox about:plugins"
Open Firefox, instead of an URL type:
about : plugins (but whitout the spaces between "about" and ":" and between ":" and "plugins". I wrote that so because : p.. creates a smylie)

Boby
 
Old 06-18-2005, 10:40 PM   #9
Pudge
Member
 
Registered: Mar 2004
Distribution: Fedora Core 3, Arch Linux 0.7
Posts: 57

Rep: Reputation: 15
@Boby
In the Fedora Core 4 release notes, they recommend that you now install Java in the /opt directory instead of the /usr directory. Here is a quote from the 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.
@if050204
It's been my experience that there seems to be a problem between Java and SELinux in Fedora Core 4. If you installed Core 4 with SELinux enabled, Java doesn't work. So, as root ( and you have to use su - not just su) enter the following command:
setenforce 0
this temporarily (until next reboot) disables SELinux. In my experience this will make Java work. Issue the following command:
setenforce 1
enables SELinux, and now Java will not work. Hence my suspicion of a Java / SELinux problem

Hope this helps.

Pudge
 
Old 06-19-2005, 03:13 AM   #10
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
Selinux seems to be interfering with a lot of stuff in FC4. I don't really need it, so I have disabled it for now whilst I try and find out more about how it works.
 
Old 06-19-2005, 03:58 AM   #11
aspirant_nono
LQ Newbie
 
Registered: Jan 2005
Location: Pont-de-Buis-Lès-Quimerc'h, France
Distribution: FC4 Final
Posts: 21

Rep: Reputation: 15
Maybe this sounds weird, but for some sites requiring java, you might also need the flash player plugin installed. For my banking online, even though I installed Java, it wouldn't work. I installed the flash player plugin for some other reason and when I went back to online banking, java worked.
What a world we live in.....
 
Old 06-19-2005, 04:33 PM   #12
Buffbannana049
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Rep: Reputation: 0
I'm also a bit (ok REALLY) new at this... I have tried to get Java running all weekend, I have tried to with Selinux on, off, it's been in local and opt, and they all seem to install ok, but when I add the link the the plugin folder in firefox it won't start (firefox). Then emptying the plugin folder corrects it, however I still don't have java...

Is there something I'm missing?
 
Old 06-19-2005, 05:40 PM   #13
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 49
There is nothing wrong with using rpm or the bin file when installing java. The rpm might be easier for rpm distributions users.

* X is started from the command line
---------------------------------------------
if you are starting X from the command line, install the rpm from http://java.sun.com and add java to your path(/home/username/.bash_profile).

* You are using a login manager like kdm or gdm
---------------------------------------------------------------
1)Install the rpm from http://java.sun.com/

2)Create a file named java.sh and put those lines
Code:
JAVA_HOME=/usr/java/jdk1.5.0_03
export JAVA_HOME

PATH=$PATH:$JAVA_HOME
export PATH
3) Move the file java.sh in /etc/profile.d and make it executable
Code:
chmod +x java.sh && mv java.sh /etc/profile.d/
4) Create a soft link to mozilla folder
Code:
ln -sf /usr/java/jdk1.5_03/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozillaDirectoryName/plugins/

Last edited by mrcheeks; 06-19-2005 at 05:44 PM.
 
Old 06-20-2005, 03:33 AM   #14
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
Quote:
Originally posted by mrcheeks
There is nothing wrong with using rpm or the bin file when installing java. The rpm might be easier for rpm distributions users.
The sun java rpm is not recommended on FC4 because it overwrites files provided by Fedoras free version of java. The same applies if you have the sun java rpm installed, the Fedora version of java will overwrite certain files if you install it (which you have to if you install OpenOffice) or upgrade it.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java fc4 firefox tuxrox07 Fedora 8 11-10-2005 02:21 AM
FC4 and java UmneyDurak Fedora 13 10-27-2005 04:13 PM
Java problems (FC4) rickh Fedora - Installation 6 09-24-2005 05:14 PM
FC4 sun java Visko Fedora 4 09-23-2005 06:48 PM
Java Exceptions On FC4 salvatore Linux - Software 8 09-11-2005 09:40 PM


All times are GMT -5. The time now is 12:06 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration