<---- template headericclude ----->
How to install JAVA in FC 4
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 10 123 ... LastLast
Results 1 to 15 of 138
  1. #1
    imdeemvp Guest

    How to install JAVA in Fedora Core 5 and 4.

    This is a JAVA how-to for fedora core 5 and 4. I will make really simple and much easier then fc3. It only requires seven steps and done. It took GOD 6 days to create the earth and on the seventh day HE rested!

    PLEASE NOTE there is a warning in the release notes NOT to install sun's java rpm so we will be using the .bin package.

    I would like to let people know that there is a distro that comes with all the browser plug-ins included and it is PCLinuxOS which is a great distro for newbies. It has 2 versions one for ATI and Nvidia drivers allready installed.
    So check it out!!


    UPDATED TO LATEST JAVA PACKAGE.BIN

    1st. Download JRE 5.0 bin.

    2nd. Accept License Agreement and click on continue

    3rd. Under the linux platform select the Linux self-extracting file (15.80mb bin file)

    4th. Open terminal and type:
    Code:
    sh jre-1_5_0_06-linux-i586.bin
    This will create a folder (jre1.5.0_03) in your home directory. We will need the to move the folder and I will comply with the fedora project recommendation of placing it in /opt/ directory.

    5th. Become root (su and enter root's password) and type:
    Code:
    mv jre1.5.0_06 /opt/
    6th. Lets copy the plugin to the mozilla folder:
    Code:
    ln -s /opt/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
    7th. TEST your plugin here: http://www.java.com/en/download/help/testvm.xml

    DONE

    [root@localhost imdeemvp]# sh jre-1_5_0_06-linux-i586.bin
    [root@localhost imdeemvp]# mv jre1.5.0_06 /opt/
    [root@localhost imdeemvp]# ln -s /opt/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
    [root@localhost imdeemvp]#
    Some user may need to take some extra steps to run some java applications so do the following:
    Open terminal and run:
    Code:
    gedit /etc/profile.d/java.sh
    Add this lines to the file:
    export J2RE_HOME=/opt/jre1.5.0_06
    export PATH=$J2RE_HOME/bin:$PATH
    CLICK ON SAVE to save the file.

    In terminal issue this command:
    Code:
    source /etc/profile.d/java.sh
    hit [enter] and you will get this is output:
    /opt/jre1.5.0_06/bin/java
    Type:
    Code:
    /usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5.0_06/bin/java 2
    hit [enter]

    Type:
    Code:
     /usr/sbin/alternatives --config java
    hit [enter]
    this is output:
    There are 2 programs which provide 'java'.
    Selection Command
    -----------------------------------------------
    *1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
    +2 /opt/jre1.5.0_06/bin/java
    Enter to keep the current selection[+], or type selection number:
    Type: 2 and hit [enter]
    Type:
    Code:
     /usr/sbin/alternatives --display java
    hit [enter]

    this is output:[QUOTE] java - status is manual.
    link currently points to /opt/jre1.5.0_06/bin/java
    /usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420
    slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry
    slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj
    slave jre: /usr/lib/jvm/jre-1.4.2-gcj
    /opt/jre1.5.0_06/bin/java - priority 2
    slave rmiregistry: (null)
    slave jre_exports: (null)
    slave jre: (null)
    Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.
    You will be able to install and run java applications.


    How-to for fedora core 3.
    Attached Images Attached Images
    Last edited by imdeemvp; 22nd April 2006 at 09:22 AM.

  2. #2
    PeTzZz is offline Retired Community Manager
    Join Date
    Mar 2004
    Location
    Tallinn
    Posts
    1,550
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should also add how to get Azureus and other java applications working. You can find those steps in this thread. Look for bytesteps instructions.

  3. #3
    WDOA Guest
    Still no joy getting the java plugin to work with Firefox in FC4. I had no problems with FC3 and have done this dozens of time, but with FC4 it does not appear to work. When I try to load any page with a java applet I don't get any errors, or indications a plugin is needed, just absolutely nothing where the applet should be displayed.

  4. #4
    imdeemvp Guest
    That was recommend in fc3 but never had a need for it.....Limewire uses java I found a quick way around. I just want to keep it easy and simple. But it may helpful to others.

    @WDOA.....whatever you where trying to do previous to theses intructions has to be REMOVE and that includes any folders and links you created. As the screenshot shows I have working.
    Last edited by imdeemvp; 15th June 2005 at 07:43 PM.

  5. #5
    imurhuckleberry Guest
    u da' man, deemv; your instructions worked like a charm (i've been struggling with install for a few days with no luck from other suggestions posted).

    thx

  6. #6
    03giant Guest
    thanks imdeemvp!
    I was dreading this part again moving up to fc4.
    it was a breeze, as it should be!

  7. #7
    imdeemvp Guest
    It should be a breeze.....I dont like all the language of mambo & jambo...I am just a regular user as you guys. In my entire life I have never taken a computer class so I believe in the easier the better!

  8. #8
    Join Date
    Mar 2004
    Location
    San Antonio, Tx
    Age
    66
    Posts
    4,154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your instructions did work great...I am just finishing up my FC4 install.
    I got the mp3, dvd and now java...I think I am all set
    **********************************************
    sailor
    West of San Antonio, Tx ... near Castroville Tx

    Fedora 39 <> IntelCore i7-4790 × 4 <>
    **********************************************

  9. #9
    smfinley Guest
    The offical FC4 release notes recommend that you intall Java in /opt. See http://stanton-finley.net/fedora_cor...ion_notes.html
    Last edited by smfinley; 16th September 2005 at 12:28 AM.

  10. #10
    imdeemvp Guest
    I personally selected the /usr/ since the previous releases it worked fine. User are free to mv to the /opt/ directory if they want. I personally dont have and issue with it since I only use as plugin. If there is an issue will see.

    BTW, your intructions since a little to complicated. Make simple and easy.
    Last edited by imdeemvp; 16th June 2005 at 07:51 AM.

  11. #11
    jgionet Guest
    the sym link in /usr/bin/ needs to be modified to point to this newer version in the /opt directory.
    after installing java 1.5.0_03 following the instructions above I did:
    Code:
    java -version
    java version "1.4.2"
    gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)
    
    Copyright (C) 2005 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    so what I did was:
    Code:
    cd /usr/bin
    ls -al java
    lrwxrwxrwx  1 root root 22 Jun 15 23:00 java -> /etc/alternatives/java
    mv java java.default
    ln -s /opt/jre1.5.0_03/bin/java java
    now when I run:
    Code:
    java -version
    java version "1.5.0_03"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
    Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
    Hope this helps out

  12. #12
    noky2 Guest
    Argh! I still can't get the java plugin to work with firefox in FC4... If I try "aboutlugins" in firefox, it looks like java is installed. But, whenever I try to load an applet (eg: javatester.org/version.html), I just get a blank area where the applet should be. I even installed the java console extension and it won't start.

    This is driving me nuts! I need this to do developement (and my old FC3 partition doesn't seem to boot now, grr!) Any ideas? That /usr/bin/java symlink seemed like a good trick, but it didn't help wrt/plugin.

    BTW, I used 1.5.0_03, installed in /opt.

  13. #13
    Join Date
    Feb 2004
    Posts
    857
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have exactly the same problem. I've installed the Sun RPM and created the symlink many times previously, so I know what I'm doing (this time I installed the non-RPM version). This is important: I noticed that whenever I try to run an applet, a file plugin_stack.trace is created in my home directory with the contents

    java.lang.NoClassDefFoundError
    at sun.plugin.AppletViewer.initEnvironment(Unknown Source)
    at sun.plugin.navig.motif.Plugin.doit(Unknown Source)
    at sun.plugin.navig.motif.Plugin.start(Unknown Source)

    Do you also get this? Check the modification time to see if it's the same as the last time you tried to load an applet. I don't know what it means yet.

  14. #14
    noky2 Guest
    I'll be damned, I get that too robatino. Looks like a classpath issue... I wonder if the GNU java stuff that comes with FC4 is somehow getting in the way, causing a conflict? It looks like other people are successfully getting the plugin to work - what is different about our configurations? Did you install the java stuff from the FC4 disks? I know I did... wishing that I hadn't now.

  15. #15
    Join Date
    Feb 2004
    Posts
    857
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did a workstation-class install, so the Java stuff including gij was included. I'm happy to migrate to an open-source version of Java even if it's a little behind, so ideally I just want the Sun JRE for the plugin and the included software for everything else. I haven't used the "alternatives" command to reset what the java command points to, and would prefer not to unless it's necessary. Maybe it is?

Page 1 of 10 123 ... LastLast

Similar Threads

  1. Help with Java install
    By louiss3000 in forum Using Fedora
    Replies: 2
    Last Post: 19th September 2008, 08:32 PM
  2. install java 6
    By ihas_abdel in forum Using Fedora
    Replies: 2
    Last Post: 20th September 2007, 01:22 PM
  3. Java install help please.
    By Xii in forum Using Fedora
    Replies: 0
    Last Post: 15th September 2006, 08:07 AM
  4. Replies: 0
    Last Post: 3rd November 2005, 08:04 AM
  5. How to NOT install java...?
    By doobie in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 17th June 2005, 08:09 PM

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
  •  
[[template footer(Guest)]]