DownloadDownload Bash script downloadBash Script RPM downloadRPM
Site Navigation:


 
 
Java Installation on Fedora Core 4

Romance-net.com Top Exchange

Java Installation on Fedora Core 4

The documents, files and informations provided in this site is solely for educational purposes only. The author is not responsible for any damages what so ever resulted for from direct or indirect use of any material found in this site.

This documents is provided for free, and if you want to redistribute this document please contact the author ()

Site History :

    Java Installation on Fedora Core 4

  • 4 February 2006
    Start of the pages



Installing Java

If you wish to install JRE, you will need to download the JRE from http://java.sun.com/j2se/1.5.0/download.jsp

Upon successful download, you will need to :
1. Move the *.bin to /opt
2. Change the permission of *.bin +x or executable by chmod +x *-linux-i586.bin
3. Extract the *.bin by issuing ./*.bin
4. Change to root usin su
5. Make soft link of ln -s /opt/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
6. Edit /etc/profile.d/java.sh (using text editor joe/nano/gedit), type :

export J2RE_HOME=/opt/jre1.5.0_05
export PATH=$J2RE_HOME/bin:$PATH

Save the file.
7. Edit the java path environment by issuing :

source /etc/profile.d/java.sh
which java

8. If you see the result from number 7 : /opt/jre1.5.0_05/bin/java then type : /usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5.0_05/bin/java 2
9. Then type /usr/sbin/alternatives --config java and choose 2 (/opt/jre1.5.0_05/bin/java)
10.Check the installation by issuing /usr/sbin/alternatives --display java
11.You should see :

java - status is manual.
link currently points to /opt/jre1.5.0_05/bin/java
...

12.Done!.

[Warning] Java from Sun

Fedora Core warns against using Java from Sun. Therefore you must use the above instructions to trick Fedora Core in installing the Java from Sun to other directory : /opt

Counter

This site has been accessed for :