The Linux Blog UNIX, LINUX, BSD, OSX

21Aug/090

How to install Java on Linux computer – Linux RPM package

sun-java-logoThis guide will provide you with advise and instructions on how to install Java for the Linux computer for Linux RPM package. In order to install the Linux RPM (self-extracting) file, please follow the instructions as provided below:
- Please type following command at the terminal:
su
- Now please enter the root password.
- You can change to the directory in which you want to install and for that please type following:
cd

- If you would like to install the software in the /usr/java/ directory, then please type:
cd /usr/java
- If you would like to change the permission of the file you downloaded to be executable, then please type following command:
chmod a+x jre-6u-linux-i586-rpm.bin
- you can commence thethe installation process by typing following:
./jre-6u-linux-i586-rpm.bin
This command will displas the binary license agreement. After reading the agreement, please. press the spacebar to display the next page. At the end, please enter yes to proceed with the installation.

Please note that the installation file creates jre-6u-linux-i586.rpm file in the current directory.

- In order to install the package, please run the RPM command at the terminal to install the packages and for that please type:
rpm -iv jre-6u-linux-i586.rpm

- Now Java is installed in jre1.6.0_ sub-directory under the current directory which is /usr/java/jre1.6.0_.
- If you want to verify that the jre1.6.0_ sub-directory is listed under the current directory, then please type:
ls

The installation is now complete. If you followed all the instructions as provided in this tutorial guide the Linux RPM is successfully installed on the Linux computer.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


Trackbacks are disabled.