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: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.Code:sh jre-1_5_0_06-linux-i586.bin
5th. Become root (su and enter root's password) and type:6th. Lets copy the plugin to the mozilla folder:Code:mv jre1.5.0_06 /opt/7th. TEST your plugin here: http://www.java.com/en/download/help/testvm.xmlCode:ln -s /opt/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
DONE
Some user may need to take some extra steps to run some java applications so do the following:[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]#
Open terminal and run:Add this lines to the file:Code:gedit /etc/profile.d/java.sh
CLICK ON SAVE to save the file.export J2RE_HOME=/opt/jre1.5.0_06
export PATH=$J2RE_HOME/bin:$PATH
In terminal issue this command:hit [enter] and you will get this is output:Code:source /etc/profile.d/java.shType:/opt/jre1.5.0_06/bin/javahit [enter]Code:/usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5.0_06/bin/java 2
Type:hit [enter]Code:/usr/sbin/alternatives --config java
this is output:Type: 2 and hit [enter]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:hit [enter]Code:/usr/sbin/alternatives --display java
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.