 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

13th June 2005, 08:14 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 160

|
|
|
FC4 Sun Java Warning
http://fedora.redhat.com/docs/releas...ata/#id2503640
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.
|

14th June 2005, 03:30 PM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Mexico City, Mexico
Age: 35
Posts: 4,419

|
|
|
Ok, but which of the RPMs provided by jpackage? I've looked at it, but did not know which to download. Should I get the one for Java 1.5.0 labled as it is from Sun? Or should I get Kafe? or which?
__________________
If ain't broken, don't fix it! :eek:
If can be improved, go for it! :cool:
FedoraForum Community forums lurker.
Fedora user since RHL 5.2 :cool:
Systems: Laptop, Main System, Netbook.
|

14th June 2005, 04:29 PM
|
|
Retired Community Manager
|
|
Join Date: Mar 2004
Location: Tartu
Posts: 1,550

|
|
Quote:
|
Originally Posted by wtogami
or manually install the Sun Java tarball into /opt.
|
Is it Linux self-extracting file in the download section of Sun Java page?
|

14th June 2005, 04:39 PM
|
|
Registered User
|
|
Join Date: Jun 2004
Location: Perth, Western Australia
Age: 36
Posts: 1,464

|
|
|
Yeah the linux self extracting one. However I don't know how to export the path properly since the names if I run java it runs as libgcj I think it is?
Last edited by strikeforce; 14th June 2005 at 04:46 PM.
|

14th June 2005, 05:50 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 2

|
|
|
did anyone get this to work?
Did anyone get java to work?
|

14th June 2005, 06:04 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158

|
|
|
java works great. there is a link in /usr/bin/java that actually starts java so it needs to be pointed to the correct java installation. the easiest way to do this (to presserve both or all installations of java) is to use alternatives.
if you type alternatives --config java you will see a single entry pointing to something like /usr/lib/jvm/jre-1.4.2-gcj/bin/java.
all you need to do is add the link (path) to the new installation of java from sun
alternatives --install /usr/bin/java java /pathto/sunjava/java 2
(usage is alternatives <link> <name> <path> <priority>)
once you add the new java configuration to alternatives all you need to do is activate, to tell the system this is what should be run as /usr/bin/java:
alternatives --config java
this will give you a menu of java installations. choose the second option (hence, priority 2) and hit enter. now when you type something like java -jar filename.jar it will use the sun java instead of the inlcuded gcj.
note: you can also delete the /usr/bin/java and make a new symbolic link to the java binary of the new java installation, but i do not recommend this.
__________________
I am root. If you see me laughing you better have a backup.
|

14th June 2005, 06:05 PM
|
|
Retired Community Manager
|
|
Join Date: Mar 2004
Location: Tartu
Posts: 1,550

|
|
I managed to get java working now.
Download JRE 5.0 Update 3 here. Note that you have to download the Linux self-extracting file. Then read the instructions how to install it.
After that do as root:
Code:
gedit /etc/profile.d/java.sh
and paste this text and save:
Code:
#!/bin/sh
JAVA_HOME=/usr/java/jdk1.5.0_03
export JAVA_HOME
JAVA_BIN=$JAVA_HOME/bin
CLASSPATH=$CLASSPATH:$JAVA_HOME:$JAVA_HOME/lib
PATH=$JAVA_BIN:$PATH
export JAVA_BIN CLASSPATH PATH
where /usr/java/jdk1.5.0_03 is the directory you installed it. Now reboot. Maybe log in and log out works also.
To get the firefox plugin to work, make a link of
Code:
theinstallationpath/plugin/i386/ns7/libjavaplugin_oji.so
(right click on it in Nautilus and choose Make Link, Nutilus has to be run with root privilegs - you can do it by running nautilus from terminal as root) and move it to /usr/lib/firefox-1.0.4/plugins (note that you have to remove link to prefix in the filename if you made the link with the right click menu).
That's it. Azureus and other java applications should work now.
Last edited by PeTzZz; 17th June 2005 at 09:14 AM.
Reason: made a bit more understandable
|

14th June 2005, 06:06 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158

|
|
i wrote this to a questions almost identical to this one some time back. its a much better walk through but geared toward getting java to work on a 64bit system and using it as a firefox browser plugin. might help you out.
http://forums.fedoraforum.org/forum/...ad.php?t=55412
__________________
I am root. If you see me laughing you better have a backup.
|

14th June 2005, 06:11 PM
|
|
Retired Community Manager
|
|
Join Date: Mar 2004
Location: Tartu
Posts: 1,550

|
|
|
bytesniper's method seems to be better. So you may use his method instead of making mentioned /etc/profile.d/java.sh.
|

15th June 2005, 12:47 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Location: Perth, Western Australia
Age: 36
Posts: 1,464

|
|
|
You are an absoluet champion it worked straight away. Thanks so much for this. I just had to re-arrange where stuff was which is fine.
|

16th June 2005, 03:13 AM
|
 |
Registered User
|
|
Join Date: Jun 2005
Location: Singapore
Age: 21
Posts: 13

|
|
um , im a newb so dont mind me asking ... Whats the difference? I want to play java games on the internet with my FC4 whihc im isntalling right now. Will i be able to play it as it has various Java choices? Can i use sun Java to play that game ( www.runescape.com)
Thanks
xbaxe
__________________
Im COUNTED , what about you?
Quote:
|
"In a world without fences or walls, there's no need for Gates or Windows."
|
|

16th June 2005, 03:21 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Location: Perth, Western Australia
Age: 36
Posts: 1,464

|
|
|
Yeah as long as you put a symbolic link not your firefox plugins directory to the java plugin. That will mean you have java enabled in your browser.
|

16th June 2005, 07:25 AM
|
 |
Retired Community Manager
|
|
Join Date: Jul 2004
Posts: 1,335

|
|
Quote:
|
Originally Posted by wtogami
http://fedora.redhat.com/docs/releas...ata/#id2503640
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.
|
See the (entire) Java section at Fedora Core 4 Installation Notes.
Last edited by smfinley; 18th December 2005 at 05:53 PM.
|

16th June 2005, 09:12 AM
|
 |
Registered User
|
|
Join Date: Jun 2005
Location: Singapore
Age: 21
Posts: 13

|
|
Quote:
|
Originally Posted by strikeforce
Yeah as long as you put a symbolic link not your firefox plugins directory to the java plugin. That will mean you have java enabled in your browser.
|
What do you mean " not your firefox plugins directory " ?
__________________
Im COUNTED , what about you?
Quote:
|
"In a world without fences or walls, there's no need for Gates or Windows."
|
|

16th June 2005, 10:55 PM
|
|
Registered User
|
|
Join Date: Nov 2004
Posts: 17

|
|
Quote:
|
Originally Posted by PeTzZz
I managed to get java working now.
Download JRE 5.0 Update 3 here. Note that you have to download the Linux self-extracting file. Then read the instructions how to install it.
After that do as root:
Code:
gedit /etc/profile.d/java.sh
and paste this text:
Code:
#!/bin/sh
JAVA_HOME=/usr/java/jdk1.5.0_03
export JAVA_HOME
JAVA_BIN=$JAVA_HOME/bin
CLASSPATH=$CLASSPATH:$JAVA_HOME:$JAVA_HOME/lib
PATH=$JAVA_BIN:$PATH
export JAVA_BIN CLASSPATH PATH
where /usr/java/jdk1.5.0_03 is the directory you installed it. Now reboot. Maybe log in and log out works also.
To get the firefox plugin to work, make a link of
Code:
theinstallationpath/plugin/i386/ns7/libjavaplugin_oji.so
(right click on it in Nautilus and choose Make Link, Nutilus has to be run with root privilegs - you can do it by running nautilus from terminal as root) and move it to /usr/lib/firefox-1.0.4/plugins.
That's it. Azureus and other java applications should work now.
|
I just wanted to say thanks to Pet for posting this - it worked for me and I was really frustrated!
-SC
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 13:47 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|