Friday, January 14, 2011

How To Install Java Linux (self-extracting) file



To install the Linux (self-extracting) file
Follow these instructions:
Change the permission of the file you downloaded to be executable. Type:
chmod a+x jre-6u<version>-linux-i586.bin
Verify that you have permission to execute the file. Type:
ls -l



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 Java 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 Java in your home directory or a subdirectory for which you have write permissions.


Run the self-extracting binary Type:
./jre-6u<version>-linux-i586.bin

The license agreement is displayed. Review the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.

Java is installed into its own directory. In this example, it is installed in the /usr/java/jre1.6.0_<version> directory. When the installation has completed, you will see the word Done.


Verify that the jre1.6.0_<version> sub-directory is listed under the current directory. Type:
ls


The installation is now complete. Skip to the Enable and Configure section.

To install the Linux RPM (self-extracting) file
Follow these instructions:
Become the root user by running the su command and entering the super-user password.
At the terminal: Type:
su
Enter the root password.
Change to the directory in which you want to install. Type:
cd <directory>
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java

Note about root access: To install Java 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 Java 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-6u<version>-linux-i586-rpm.bin

Start the installation process. Type:
./jre-6u<version>-linux-i586-rpm.bin

The license agreement is displayed. Review the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.

The installation file creates and runs the file jre-6<version>-linux-i586.rpm in the current directory.

Verify that the jre1.6.0_<version> sub-directory is listed under the current directory. Type:
ls


The installation is now complete.

0 komentar:

Post a Comment

 
Copyright 2010 Linux Free Download. All rights reserved.
Themes edited by : Blogger Templates l Computer Stuff l Linux Site