Java

Java in Action Downloads Help Center

Installing Java

   

How do I download and install Java for my Solaris 32-bit computer?


This article applies to:
  • Platform(s):
    Solaris SPARC, Solaris x86
  • Browser(s):
    Mozilla 1.4+
  • JRE version(s):
    1.5.0, 6.0


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



Solaris system requirements

Platform Version Memory Browsers Diskspace
Solaris OS AMD64/EM64T (32-bit and 64-bit)
Solaris OS AMD64/EM64T Solaris 10 OS (32/64 bit) 64mb Mozilla 1.4+, 1.7+
32-bit Install 53MB
64-bit Install 23MB
SPARC 64-bits Solaris 10
Solaris 9
Solaris 8
64mb Mozilla 1.4+, 1.7+
64-bit Install (no Java Plug-in, Java WebStart support) 53MB
SPARC 32-bits Solaris 10
Solaris 9
Solaris 8
64mb Mozilla 1.4+, 1.7+
32-bit Install 65 MB
64-bit Install 29 MB


Note:
  1. Color depth should be 16 bit or higher.
  2. Prior to installing the J2SE Runtime Environment (JRE), ensure that you have installed the full set of required patches for this release. Recommended and required patches are available for download from the SunSolve website.
  3. See also Solaris Font Package Requirements for information about which font packages should be on your system.



Download
  1. Go to java.com

  2. Click on Download Now button.
    The Solaris Manual Downloads page appears:


Solaris Manual Downloads

  1. Download the SPARC 32 Bit/x86 package by clicking on the Download button.
    You can download the file to any of the directories on your system.

  2. After downloading, verify that the:
    For SPARC 32 bit
    • Name of the file is jre-6u2-solaris-sparc.sh
    • Size is approximately 19.42 MB
    For x86
    • Name of the file is jre-6u2-solaris-i586.sh
    • Size is approximately 14.41MB




Install

The JRE comes in the form of a self-extracting binary file. Follow the instructions below to install the JRE:
  1. Change to the directory in which you have downloaded. Type:
    cd <directory path name>
    For example, if you have downloaded the file to /tmp directory, type:
    cd /tmp

  2. Make sure that execute permissions are set on the self-extracting binary:
    On SPARC 32 bit:
    chmod a+x jre-6u2-solaris-sparc.sh
    On x86:
    chmod a+x jre-6u2-solaris-i586.sh

  3. Change directory to the location where you want to install. Type:
    cd <directory path name> For example, to install the software in the /usr/java directory, type:
    cd /usr/java

  4. Run the self-extracting binary. For example,
    On SPARC 32 bit:
    /tmp/jre-6u2-solaris-sparc.sh
    On x86:
    /tmp/jre-6u2-solaris-i586.sh
    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.


Solaris JRE License Agreement
  1. The files are installed in the jre1.5.0 sub-directory under the current directory.
    Note: The Java Plug-in and Java Web Start are automatically installed with the JRE.




Enable and Configure

Once the installation is complete, ensure that you enable and configure the JRE to run applets in your browser. To enable the JRE for the browser:
  1. Go to the plugins sub-directory under the Mozilla installation directory. Type:
    cd <Mozilla installation directory>/plugins

  2. In the current directory, create a symbolic link to the JRE libjavaplugin_oji.so file by typing:

    For SPARC 32 bit
    ln -s <JRE installation directory>/plugin/sparc/ns610/libjavaplugin_oji.so .

    For x86
    ln -s <JRE installation directory>/plugin/sparc/i386/libjavaplugin_oji.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 the JRE is installed in this directory:
    /usr/java/jre6u2
    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.6.0_u2/plugin/i386/ns610/libjavaplugin_oji.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.
    JRE is now enabled for the browser.



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 JRE installation
The JRE installation and configuration is successful if you can see the animation of the Duke logo image.


NEED MORE HELP?
If you require further assistance, please make sure you check through our Help and FAQ sections thoroughly. We probably have a page that answers your question.

You may find information on the following topics in the Help section:
Installing Java
Configuring Java
Error Messages
Applet Application


Help Resources
> Installing Java
> Configuring Java
> Error Messages
> Applet Application
> Legal

 

FAQ
> General Questions
> Java for Mobile Devices

 

Select Language | Java Wear | Newsletter | About Java Technology | Partner with Us | Developers | java.com Changes
Privacy | Terms of Use | Trademarks | License | Disclaimer | Contact

Sun Microsystems