1) Login as root user. Switch to directory where this file is located
2) Make this file executable, if not already
Code:
chmod 755 jdk1.5.0.rpm.bin
3) Run this file
Then you will see some screen of Lisence agreement..keep pressing ENTER until it asks you to type "y" or "n". Press "y"...and it will extract an .rpm file in the same directory. Let's assume the filename is
jdk1.5.0.rpm
4) Install the jdk1.5.0 rpm file using this command
Code:
rpm -ihv jdk1.5.0.rpm
5) Set path of the java executable in the PATH variable. In your case the path can be different (mostly it's /usr/java/jdk1.5.0/bin)
Code:
export PATH=$PATH:/path/to/jdk1.5.0/bin
6) Also add the export command shown above to /etc/profile if you want this path variable to be available after you reboot