How to install java on Linux computer - Linux self extracting binary file

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on August 19th, 2009

Welcome to the tutorial guide. The guide will provide you with advise and instructions on how to install Java for the Linux computer.

Please note that there are two types of installation packages. These are:
- Linux RPM package and
- Linux self extracting binary file.

If you are planning to install the Linux self extracting binary file, then please choose the installation package by clicking on the appropriate Download button
- Now please download the file to any of the directories on the system.
- After download please verify:
Name of the file is jre-1_6_0_02-linux-i586.bin
Size is approximately 15.8 MB

Before we go through the installation process for Linux self extracting binary file, let’s have a look at following recommendation. If you are downloading update 1.6.0_01, the command will change. If the command is:
./jre-6-linux-i586.bin
This command would become:
./jre-6u1-linux-i586.bin

In order to install the Linux self extracting binary file:
- Please type following 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 command:
cd

- If you planning to install the software in the /usr/java/ directory, then you have to type:
cd /usr/java/

- If you would like to alter the permissions of the file that you have downloaded to executable, then please change them typing following command:
chmod a+x jre-6u-linux-i586.bin

- In order to verify that you have permission to execute the file, please type following:
ls -l

- Now installation process can be started by typing:
./jre-6u-linux-i586.bin

- Now you will see the binary license agreement. After you have read 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 Java is installed into its own directory. When the installation is complete, you will see the word Done. The installation is complete.

If you have followed the instructions as provided in this tutorial guide then JAVA is successfully installed on the Linux computer.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Leave a Comment