Java.com

Download Help

Printable Version

How do I download and install Java for Solaris?


This article applies to:
  • Platform(s): Solaris SPARC, Solaris x86
  • Java version(s): 6.0, 7.0, 8.0

Follow these steps to download and install Java for Solaris.
  1. Download
  2. Install
  3. Enable and Configure

Solaris System Requirements

See supported Java 8 System Configurations for information about supported platforms, operating systems, desktop managers, and browsers.


Download
The instructions below are for installing version Java 7 Update 7 (7u7). If you are installing another version, make sure you change the version number appropriately when you type the commands at the terminal. Example: For Java 6u35 replace 7u7 with 6u35. Note that, as in the preceding example, the version number is sometimes preceded with the letter u, and sometimes it is preceded with an underbar, for example, jre1.7.0_07.

You can install a JRE archive binary in any location that you can write to. It will not displace the system version of the Java platform provided by the Oracle Solaris OS.

Installing the JRE on a 64-bit system that allows a 32-bit JVM is a two-step process: first install the 32-bit JRE and then install the additional support for 64-bit operations. The file names are as follows:

On SPARC processors:
  • jre-7u7-solaris-sparc.tar.gz (32-bit)
  • jre-7u7-solaris-sparcv9.tar.gz (64-bit)
On x64/EM64T processors:
  • jre-7u7-solaris-i586.tar.gz (32-bit)
  • jre-7u7-solaris-x64.tar.gz (64-bit)
If you are running a 32-bit version of Oracle Solaris, you only need to download and install the 32-bit version.

  1. Go to java.com
  2. Click on Free Java Download button.
    The Solaris Manual Downloads page appears
  3. Download the bundles or bundle, if you are installing only the 32-bit version of Oracle Solaris. The archive binaries can be installed by anyone (not only root users), in any location that you can write to.
The .tar.gz archive file (also called a tarball) is a file that can be simultaneously uncompressed and extracted in one step.


Install
The .tar.gz archive file (also called a tarball) is a file that can be simultaneously uncompressed and extracted in one step.
  1. Change directory to the location where you would like the JRE to be installed.
    cd <directory path name>
    For example, to install the software in the /usr/java directory:
    cd /usr/java
  2. Move the .tar.gz archive binaries to the current directory.
  3. Unpack the tarball and install Java.
    On SPARC processors:
    gzip -dc jre-7u7-solaris-sparc.tar.gz | tar xf -
    gzip -dc jre-7u7-solaris-sparcv9.tar.gz | tar xf -

    On x64/EM64T processors:
    gzip -dc jre-7u7-solaris-i586.tar.gz | tar xf -
    gzip -dc jre-7u7-solaris-x64.tar.gz | tar xf -

    Java is installed in a directory called jre1.7.0_<version> in the current directory. For example, for the JRE 7 update 1 release, the directory would be named: jre1.7.0_01

    The supplemental files for 64-bit support are installed in directories named for the machine architecture model, which are added at several locations within the same jre1.7.0<version> directory where the was installed.

    For example, on SPARC processors the 64-bit Java VM Library file (libjvm.so) is stored in the jre1.7.0<version>/lib/sparcv9/server directory, whereas the version for x64/EM64T is stored in the jre1.7.0<version>/lib/x64/server directory.

Enable and Configure
Once the installation is complete, ensure that you enable and configure Java to run applets in your browser.
Steps to Enable Java for the browser:
  1. Go to the plugins sub-directory under Mozilla installation directory. Type:
    cd <Firefox installation directory>/plugins
  2. In the current directory, create a symbolic link to Java libnpjp2.so file by typing:
    For SPARC 32 bit
    ln -s <Java installation directory>/lib/sparc/libnpjp2.so .
    For x86
    ln -s <Java installation directory>/lib/sparc/i386/libnpjp2.so .

    Note: Be sure to include the period (.) at the end.

    Example:
    If Mozilla is installed in this directory:
    /usr/lib/mozilla-1.4/

    and if Java is installed in this directory:
    /usr/java/jre7u3
    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 Java Plug-in for the Mozilla browser.
    ln -s /usr/java/jre1.7.0_u<version>/lib/libnpjp2.so .
  3. Start Mozilla browser or restart 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.
  4. Go to Edit > Preferences.
  5. Under Advanced category > Select Enable Java.
    Java is now enabled for the browser.

Test Installation

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



Find expert help on Java installation and setup

Select Language | About Java | Support | Developers
Privacy | Terms of Use | Trademarks | Disclaimer

Oracle