Install Sun's Java Virtual Machine ( J2SE(TM) Development Kit 5.0 Update 9 ) on Fedora Core / Linux platform in 5 simple steps. The procedure is geared for users having access to Linux box from ssh / telnet only as in a vpn / dedicated web hosting. However it can be used by anyone.

Step 1:
Login as root (su) and cd to a temporary directory for downloads. Suppose your user name is john then you can do:

su
cd ~john

Step 2:
Download J2SE(TM) Development Kit 5.0 Update 9 as Linux RPM in self-extracting file using wget. To do that first browse to this link using your browser. After accepting the license copy the link corresponding to Linux RPM in self-extracting file.

Use wget to copy the link. Specify the output file as wget will be unable to save the default name it generates because it is too long:
wget http://192.18.108.145/ECom/EComTicketServlet/…i586-rpm.bin -O jdk-1_5_0_09-linux-i586-rpm.bin

Note: -O specifies the output file as shown above.

Step 3:
Install JVM as follows:

sh jdk-1_5_0_09-linux-i586-rpm.bin

Step 4:
Now download java-1.5.0-sun-compat-1.5.0.09-1jpp.noarch.rpm using wget.
Install it as follows:
rpm -i java-1.5.0-sun-compat-1.5.0.09-1jpp.noarch.rpm

This sets up environment variables, paths, symbolic links etc.

Step 5:
Create a new console and type java. You should see something like:

Usage: java [-options] class [args...]

You are done!