Linux download and installation for JRE

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

Follow these steps to download and install the JRE for Linux.
  1. Download
  2. Install
  3. Enable and Configure
  4. Test Installation

Download
  1. Go to http://java.com
  2. Click on Get Java Software button
  3. There are two types of installation packages. Linux RPM package or Linux self extracting binary file. Download the package that best suits your needs.

    Note: Linux RPM (Redhat Package Manager) uses RPM to install the JRE. In order to use this method, you need to have RPM available on your system. Otherwise use the other option.


Linux Download Options
  1. Click the appropriate Download button to download the package that best suits your needs. You can download the file to any of the directories on your system.
  2. After download verify:
  3. For Linux self extracting binary file
    • Name of the file is jre-1_5_0_02-linux-i586.bin
    • Size is approximately 15.8 MB
    For Linux RPM packages
    • Name of the file is jre-1_5_0_02-linux-i586-rpm.bin
    • Size is approximately 15.26 MB



Install



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 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.
  4. Change the permission of the file you downloaded to be executable. Type:
    chmod a+x jre-1_5_0-linux-i586.bin
  5. Verify that you have permission to execute the file. Type:
    ls -l


Make sure the installation file has executable permission
  1. Start the installation process.Type:
    ./jre-1_5_0-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.


type YES to agree to the license agreement
  1. The JRE is installed into its own directory. In this example, it is installed in the /usr/java/jre1.5.0 directory. When the installation has completed, you will see the word Done.


The installation completes
  1. 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. Skip to the Enable and Configure section.

To install the Linux RPM (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
    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.
  4. Change the permission of the file you downloaded to be executable. Type:
    chmod a+x jre-1_5_0-linux-i586-rpm.bin
  5. Start the installation process. Type:
    ./jre-1_5_0-linux-i586-rpm.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.


type YES to agree to the license agreement
  1. The installation file creates jre-1_5_0-linux-i586.rpm file in the current directory.


RPM unpacking completes
  1. Run the RPM command at the terminal to install the packages. Type:
    rpm -iv jre-1_5_0-linux-i586.rpm
  2. 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.


Enable and Configure



  • Mozilla 1.4 and later
    1. Go to the plugins sub-directory under the Mozilla installation directory
      cd <Mozilla installation directory>/plugins
    2. In the current directory, create a symbolic link to the JRE ns7/libjavaplugin_oji.so file Type:
      ln -s <JRE installation directory>/plugin/i386/ns7/libjavaplugin_oji.so

    3. Example:
      • If Mozilla is installed in this directory:
        /usr/lib/mozilla-1.4/
      • and if the JRE is installed at this directory:
        /usr/java/jre1.5.0
      • Then type at the terminal to go to the browser plug-in directory:
        cd /usr/lib/mozilla-1.4/plugins
      • Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.
        ln -s /usr/java/jre1.5.0/plugin/i386/ns7
        /libjavaplugin_oji.so .
    4. Start Mozilla browser or restart it if it is already running. Note that if you have other Mozilla components (ie: Messenger, Composer, etc) running, you will need to restart them as well.
    5. Go to Edit > Preferences. Under Advanced category > Select Enable Java


    Mozilla 1.2, Netscape 6 and later
    1. Go to the plugins sub-directory under the Netscape directory
      cd <Mozilla1.2>/plugins
    2. Create a symbolic link to the ns7-gcc29/libjavaplugin_oji.so file:
      ln -s <JRE>/plugin/i386/ns7-gcc29/libjavaplugin_oji.so

    3. Example:
      • If Netscape is installed at this directory:
        /usr/lib/Mozilla1.2/
      • And if the JRE is installed at this directory:
        /usr/java/jre1.5.0
      • Then type at the terminal to go to the browser plug-in directory:
        cd /usr/lib/Mozilla1.2/plugins
      • Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.
        ln -s /usr/java/jre1.5.0/plugin/i386/ns7-gcc29
        /libjavaplugin_oji.so .
    4. Start Mozilla browser or restart it if it is already running. Note that if you have other Mozilla components (ie: Messenger, Composer, etc) running, you will need to restart them as well.
    5. Go to Edit > Preferences. Under Advanced category > Select Enable Java



    Test Installation
    To test that the JRE is installed, enabled and working properly on your computer, run this test applet from our web site:
    Test your Java Runtime Environment 
    评论
    添加红包

    请填写红包祝福语或标题

    红包个数最小为10个

    红包金额最低5元

    当前余额3.43前往充值 >
    需支付:10.00
    成就一亿技术人!
    领取后你会自动成为博主和红包主的粉丝 规则
    hope_wisdom
    发出的红包
    实付
    使用余额支付
    点击重新获取
    扫码支付
    钱包余额 0

    抵扣说明:

    1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
    2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

    余额充值