instalar java

Upload: johan-bermudez

Post on 10-Apr-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 Instalar Java

    1/4

    (/en/store/) Java in Action (/en/java_in_action) Downloads (/inc/BrowserRedirect1.jsp?locale=en&

    host=www.java.com) Help Center (/en/download/help/index.xml)

    Search

    Printable Version (/en/download/help/linux_install.xml?printFriendly=true)HELP RESOURCES

    (/EN/DOWNLOAD

    /HELP/INDEX.XML)

    Installing Java

    (/en/download

    /help/index_installing.xml)

    Using Java

    (/en/download

    /help/index_using.xml)

    FAQ: General Questions

    (/en/download

    /faq/index_general.xml)

    FAQ: Mobile Java

    (/en/download

    /faq/index_mobile.xml)

    Support Options

    (/en/download

    /support.jsp)

    (http://www.liveperson.com

    /lp/java-help/?BanID=22489)

    How do

    I download and install Java for my Linux computer?

    This article applies to:

    Platform(s): Red Hat Linux, SUSE Linux

    Browser(s): All Browsers

    Java version(s): 1.5.0, 6.0

    Linux system requirements

    See supported System Configurations (http://java.sun.com/javase/6/webnotes/install

    /system-configurations.html) for information about supported platforms, operating systems,

    desktop managers, and browsers.

    You will also need a Pentium 166MHz or faster processor with a minimum of 75MB free disk

    space and a minimum of 32MB of RAM.

    Follow these steps to download and install Java for Linux.

    Download (#download)1.

    Install (#install)2.

    Enable and Configure (#enable)3.

    Download

    Go to http://java.com (/) and click on the Download (/en/download/linux_manual.jsp)

    button

    1.

    There are two types of installation packages.

    Linux self extracting binary file

    This file can be used to install Java in a location chosen by the user and can be

    installed by anyone (not only root users). As long as you are not root user, it cannot

    displace the system version of the Java platform suppled by Linux.

    Linux RPM package

    Linux RPM (Redhat Package Manager) uses RPM to install Java. In order to use this

    method, you need to have RPM available on your system. Otherwise use the other

    option.

    2.

    How do I download and install Java for my Linux ... http://www.java.com/en/download/help/linux_ins

    de 4 05/10/10 1

  • 8/8/2019 Instalar Java

    2/4

    Download the package that best suits your needs. You can download the file to any of the

    directories on your system.

    Download and check the download file size to ensure that you have downloaded the

    full, uncorrupted software bundle.

    Before you download the file, notice its byte size provided on the download page on

    the web site.

    Once the download has completed, compare that file size to the size of the

    downloaded file to make sure they are equal.

    3.

    Install

    Linux self extracting binary file (#selfextracting)

    Linux RPM package (#rpm)

    Note:The instructions below are for installing Java 6. 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:

    Change the permission of the file you downloaded to be executable. Type:

    chmod a+x jre-6u-linux-i586.bin

    1.

    Verify that you have permission to execute the file. Type:

    ls -l

    2.

    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 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.

    3.

    Run the self-extracting binary Type:

    ./jre-6u-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.

    4.

    Java is installed into its own directory. In this example, it is installed in the /usr/java

    /jre1.6.0_directory. When the installation has completed, you will see the word

    Done.

    5.

    How do I download and install Java for my Linux ... http://www.java.com/en/download/help/linux_ins

    2 de 4 05/10/10 1

  • 8/8/2019 Instalar Java

    3/4

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

    ls

    6.

    The installation is now

    complete. Skip to the

    Enable and Configure

    (#enable) 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.

    1.

    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 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.

    2.

    Change the permission of the file you downloaded to be executable. Type:chmod a+x jre-6u-linux-i586-rpm.bin

    3.

    Start the installation process. Type:

    ./jre-6u-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.

    4.

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

    directory.

    5.

    Verify that the

    jre1.6.0_

    sub-directory is listed

    under the current

    directory. Type:

    ls

    6.

    The installation is now

    How do I download and install Java for my Linux ... http://www.java.com/en/download/help/linux_ins

    3 de 4 05/10/10 1

  • 8/8/2019 Instalar Java

    4/4

    complete. Go to the Enable and Configure (#enable) section.

    Enable and Configure

    Firefox or Mozilla

    Create a symbolic link to the libjavaplugin.so file in the browser plugins directory

    Go to the plugins sub-directory under the Firefox installation directory

    cd /plugins

    Create the symbolic linkln -s /plugin/i386/

    ns7/libjavaplugin_oji.so

    In the ln command line above, use ns7-gcc29 if Firefox was compiled with gcc2.9.

    If you install Firefox 1.5 or later, you can enable the Java Console menu item in the Tools

    menu. Change directories to the Firefox extensions directory, then unzip ffjcext.zip there.

    cd /usr/lib/firefox-1.4/extensions

    unzip /usr/java/jre1.6.0/lib/deploy/ffjcext.zip

    Example

    If Firefox is installed at this directory:

    /usr/lib/firefox-1.4/

    And if the Java is installed at this directory:

    /usr/java/jre1.6.0

    Then type in the terminal window to go to the browser plug-in directory:

    cd /usr/lib/firefox-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.6.0/plugin/i386/ns7/libjavaplugin_oji.so

    1.

    Start the Firefox browser, or restart it if it is already up.

    In Firefox, type about:plugins in the Location bar to confirm that the Java Plugin is loaded.

    If the version is Firefox 1.5 or later, click the Tools menu to confirm that Java Console is

    there

    2.

    Test Installation

    To test that Java is installed and working properly on your computer, run this test applet

    (/en/download/help/testvm.xml) .

    How do I download and install Java for my Linux ... http://www.java.com/en/download/help/linux_ins

    4 de 4 05/10/10 1