The instructions below are for installing JRE 5.0. If you're installing another version, make sure you change the version number appropriately when you type the commands at the terminal.
To install the Linux (self-extracting) file, follow these instructions:
-
Enter the root password.
Change to the directory in which you want to install. Type:
cd <directory path name>
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java/
Note about root access: To install the JRE in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install the JRE in your home directory or a subdirectory for which you have write permissions.
Change the permission of the file you downloaded to be executable. Type:
chmod a+x jre-1_5_0-linux-i586.bin
Verify that you have permission to execute the file. Type:
ls -l
Make sure the installation file has executable permission
Start the installation process.Type:
./jre-1_5_0-linux-i586.bin
type YES to agree to the license agreement
The installation completes
The JRE is installed in jre1.5.(version number) sub-directory under the current directory. In this case, the JRE is installed in the /usr/java/jre1.5.0 directory. Verify that the jre1.5.0 sub-directory is listed under the current directory. Type:
ls
Verify the installation filename
The installation is now complete. Go to the Enable and Configure section.