To install JDK on the Linux

http://www.java.com/en/download/help/5000010500.xml#selfextracting

 

To install the Linux (self-extracting) file Follow these instructions:

  1. At the terminal: Type:
    su
  2. Enter the root password.
  3. 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.
  4. Change the permission of the file you downloaded to be executable. Type:
    chmod a+x jre-6u<version>-linux-i586.bin
  5. Verify that you have permission to execute the file. Type:
    ls -l

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

    This displays a binary license agreement. Read through the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.
  1. 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.
  1. Java is installed in jre1.6.0_<version> sub-directory under the current directory. In this case, Java is installed in the /usr/java/jre1.6.0_<version> directory. 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.

你可能感兴趣的:(java,jdk,linux,File,Access,Terminal)