FedoraForum.org - Fedora Support Forums and Community
Page 1 of 10 123 ... LastLast
Results 1 to 15 of 147
  1. #1
    Join Date
    Mar 2005
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Join Date
    May 2004
    Location
    Mexico City, Mexico
    Age
    49
    Posts
    4,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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:

  3. #3
    PeTzZz is offline Retired Community Manager
    Join Date
    Mar 2004
    Location
    Tallinn
    Posts
    1,550
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

  4. #4
    Join Date
    Jun 2004
    Location
    Perth, Western Australia
    Age
    49
    Posts
    1,464
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  5. #5
    kentiz Guest

    did anyone get this to work?

    Did anyone get java to work?

  6. #6
    bytesniper Guest
    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.

  7. #7
    PeTzZz is offline Retired Community Manager
    Join Date
    Mar 2004
    Location
    Tallinn
    Posts
    1,550
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  8. #8
    bytesniper Guest
    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

  9. #9
    PeTzZz is offline Retired Community Manager
    Join Date
    Mar 2004
    Location
    Tallinn
    Posts
    1,550
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bytesniper's method seems to be better. So you may use his method instead of making mentioned /etc/profile.d/java.sh.

  10. #10
    Join Date
    Jun 2004
    Location
    Perth, Western Australia
    Age
    49
    Posts
    1,464
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  11. #11
    xbaxe Guest
    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

  12. #12
    Join Date
    Jun 2004
    Location
    Perth, Western Australia
    Age
    49
    Posts
    1,464
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  13. #13
    smfinley Guest
    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 06:53 PM.

  14. #14
    xbaxe Guest
    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 " ?

  15. #15
    Join Date
    Nov 2004
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Page 1 of 10 123 ... LastLast

Similar Threads

  1. Replies: 0
    Last Post: 24th July 2008, 01:22 AM
  2. Can I update java by simply installing java?
    By schwim in forum Using Fedora
    Replies: 5
    Last Post: 20th December 2007, 02:34 PM
  3. Replies: 1
    Last Post: 13th May 2006, 09:54 AM
  4. java prob: alternatives --config java
    By peimankhosravi in forum Using Fedora
    Replies: 0
    Last Post: 12th August 2005, 04:06 PM
  5. Warning java -jar not understood
    By anmb in forum Using Fedora
    Replies: 4
    Last Post: 6th June 2005, 09:44 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •