Sun Java Solaris Communities My SDN Account Join SDN
 
Documentation

Java 2 Runtime Environment Installation Instructions

 

Installation Notes

Java 2 Runtime Environment, Standard Edition
Version 1.3.1
Solaris 2.6, 7, 8 Operating Environment

Japanese

System Requirements

The Java 2 Runtime Environment, Standard Edition, v. 1.3.1 is intended for use on Solaris 2.6, Solaris 7, and Solaris 8 operating environments.

Prior to installing the Java 2 Runtime Environment, you should insure that you have installed the full set of required patches needed for support of this release. See Solaris Patch Installation before proceeding.

See also Solaris Font Package Requirements for information about which font packages should be on your system.

Installation Instructions

The Java 2 Runtime Environment (J2RE), Standard Edition, v1.3.1 comes in the form of a self-extracting binary file. Follow the instructions below to install the J2RE. Note the special Java Plug-in installation instructions at the end.

See also the note about the location of the Java HotSpot libjvm.so files.

1. Check the download file size

Check the large file that you downloaded (or that you created by concatenating the small pieces) to ensure that it is the correct size:
j2re-1_3_1-solsparc.sh     15442790 bytes

j2re-1_3_1-solx86.sh       13533020 bytes
If the file size doesn't match, it probably means the file was corrupted during download. In that case, try downloading again.
2. Make sure that execute permissions are set on the self-extracting binary:
On SPARC:
chmod +x j2re-1_3_1-solsparc.sh

On x86:
chmod +x j2re-1_3_1-solx86.sh

3. Change directory to the location where you would like the files to be installed.

4. Run the self-extracting binary.

A directory called j2re1_3_1 will be created in the current directory. After the installation is finished, this directory can be renamed as desired.

5. Install the Java Plug-in

  • Set the NPX_PLUGIN_PATH environment variable to the directory containing the javaplugin.so file. On SPARC, for example, the directory of javaplugin.so in the default installation location will be /usr/j2se/jre/plugin/sparc
  • For Netscape browsers: Start your Netscape browser, or restart it if it is already up.
  • For Netscape browsers: Restart your browser a second time. Restarting the browser a second time is necessary because of bug 4358142.



Location of libjvm.so files

If you use the Invocation API to launch an application directly rather than using the Java application launcher, be sure to use the correct paths to invoke the Java HotSpot Client VM or Java HotSpot Server VM as desired. The path within the SDK to the Java HotSpot Client VM is
jre/lib/sparc/client/libjvm.so (on SPARC)
jre/lib/i386/client/libjvm.so (on x86)
The path to the Java HotSpot Server VM is
jre/lib/sparc/server/libjvm.so (on SPARC)
jre/lib/i386/server/libjvm.so (on x86)
The Exact VM and Classic VM are no longer part of the Java 2 platform, and legacy code that uses the Invocation API to launch an application based on old paths to the Exact or Classic VMs will not work.