LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 08-16-2005, 10:07 PM   #1
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Java problems (FC4)


Freshly installed FC4. The installation notes said, 'Don't use the Sun RPM. Get the binary instead, and install it in /opt' I did that. Now a can't get Xnap, my java-based filesharing program to work. Thought I'd try something easy like linking the plugin in Firefox. As soon as I created the link, Firefox quit working ... just wouldn't open. I removed the link, and it went back to working fine ... minus Java, of course.

Any knowledge on this issue?
 
Old 08-17-2005, 01:47 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Different users have different ways of installing Java.

You can read about the manually install into /opt method here:
http://stanton-finley.net/fedora_cor...ion_notes.html

The other way is to rebuild the RPM with the package from the JPackage Project (instructions).
 
Old 08-17-2005, 09:55 AM   #3
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Rep: Reputation: 30
I had problems getting LimeWire to work, but found that when I was trying to run it, it was trying to use a link named "java" that was in my path. LimeWire worked fine after I removed that link and I installed java using the RPM from Sun. Java for Firefox works fine too.

Something you might want to consider trying.
 
Old 08-17-2005, 07:27 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 62
Went to the stanton-finley site linked above ... followed the slightly convoluted linking instructions and got it working fine. ... Thanks, spoon.

Some of those instructions aren't quite right, and I didn't always get exactly the response he predicted, but if you're reasonably familiar with what you're trying to do, you shouldn't have much trouble. Interesting that FC4 evidently ships with some variety of Java 1.4.
 
Old 08-18-2005, 09:54 PM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 62
I have one minor problem left that I'm sure is java related. Java works fine, but every time I su to root, I get an error message. It doesn't semm to hurt anything, I still get to root, but it's irritating. Here's what happens:

Quote:
[normaluser@localhost ~]$ su -
Password:
-bash: rt: command not found
[root@localhost ~]#
I did a google on that error message, and it's apparently caused by some quirk in java, but the problem being discussed didn't seem to apply to my issue.
 
Old 08-19-2005, 05:21 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally posted by dubya
I had problems getting LimeWire to work, but found that when I was trying to run it, it was trying to use a link named "java" that was in my path. LimeWire worked fine after I removed that link and I installed java using the RPM from Sun. Java for Firefox works fine too.

Something you might want to consider trying.
The java rpm from sun breaks some stuff on FC4 so they encourage people to use the binary file instead.

Anyway anyway my solution to this problem was to install java to /opt/java and then create an executable script (the one in code tags) called java.sh and placed it in /etc/profile.d.
Code:
#!/bin/sh
export JAVA_HOME=/opt/java
export MANPATH="$MANPATH:/opt/java/man"
export PATH="$PATH:/opt/java/bin:/opt/java/jre/bin"
The script puts /opt/java/bin and /opt/java/jre/bin in the path of everyone who uses the system and also revents the FEdora java from being used by programs that need java. Substitute /opt/java with your own java path.
 
Old 09-24-2005, 04:14 PM   #7
smfinley
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
See the "Java" and "LimeWire" sections of the Notes.

Last edited by smfinley; 10-12-2005 at 11:15 AM.
 
  


Reply



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 fc4 firefox tuxrox07 Fedora 8 11-10-2005 01:21 AM
FC4 and java UmneyDurak Fedora 13 10-27-2005 03:13 PM
FC4 sun java Visko Fedora 4 09-23-2005 05:48 PM
Java Exceptions On FC4 salvatore Linux - Software 8 09-11-2005 08:40 PM
FC4 and JAVA if050204 Fedora 13 06-20-2005 02:33 AM

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

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