Sun Java Solaris Communities My SDN Account Join SDN
 
JRE Install Notes 1.4.0-02

Java 2 Runtime Environment Installation Instructions

 

Installation Notes

JavaTM 2 Runtime Environment, Standard Edition
Version 1.4.0
SolarisTM Operating Environment

System Requirements

The JavaTM 2 Runtime Environment, Standard Edition, v. 1.4.0 is intended for use on SolarisTM 2.6, Solaris 7, Solaris 8, and Solaris 9 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. To obtain patches, see the SunSolve support website. You will find a patch cluster for each Solaris operating environment platform. Each patch cluster applies to all supported versions of the Java 2 Standard Edition (J2SE) on the given platform.

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.4.0 comes in the form of a self-extracting binary file. Follow the instructions below to install the J2RE.

At the end of this file, see also

Java Plug-inTM product installation instructions
Java Web StartTM product installation instructions

64-bit support for the Java 2 Runtime Environment is available for SPARCTM processor platforms in a separate download. Installation instructions for 64-bit support are in a separate document.

Note: For any lines on this page containing the following notation, you must substitute the appropriate Java 2 RE update version number for the notation.
       <version number>
For example, if you are downloading update 1.4.0_01, the following command:
      chmod +x j2re-1_4_0_<version number>-solaris-sparc.sh
would become:
      chmod +x j2re-1_4_0_01-solaris-sparc.sh

1. Check the download file size

Before you download a file, notice that its byte size is provided on the download page. Once the download has completed, check that you have downloaded the full, uncorrupted software file.

2. Make sure that execute permissions are set on the self-extracting binary:

On SPARC:
chmod +x j2re-1_4_0_<version number>-solaris-sparc.sh

On x86:
chmod +x j2re-1_4_0_<version number>-solaris-i586.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.4.0_<version number> will be created in the current directory.

Java Plug-inTM Product Installation Instructions

For documentation on the Java Plug-in product, see
http://java.sun.com/j2se/1.4/docs/guide/plugin/index.html

Follow these steps to install the Java Plug-in product:

1. For Netscape 4.x browsers: Set the NPX_PLUGIN_PATH environment variable to the directory containing the javaplugin.so file. (This step is not necessary if you use only Netscape 6.x browsers.)

On the SPARC operating environment, the default location of javaplugin140.so for the package installation is in this directory: /usr/j2se/jre/plugin/sparc/ns4/

On Intel platforms, the default location is this directory: /usr/j2se/jre/plugin/i386/ns4/

2. For Netscape 6 browsers: Use regxpcom tool provided by Netscape to register Java Plug-in 1.4.

If (and only if) you are using Netscape 6, you will need to use regxpcom provided by Netscape to register the libjavaplugin_oji140.so file. In the package installation of 1.4.0, copies of this file are located at /usr/j2se/jre/plugin/<arch>/ns600/libjavaplugin_oji140.so and /usr/j2se/jre/plugin/<arch>/ns610/libjavaplugin_oji140.so, where <arch> is either sparc or i386, depending on your platform. For example:
cd ${NETSCAPE6}/bin
If you use a Netscape 6.0x browser:
regxpcom ${JRE}/plugin/sparc/ns600/libjavaplugin_oji140.so

If you use a Netscape 6.1x browser:
regxpcom ${JRE}/plugin/sparc/ns610/libjavaplugin_oji140.so

3. For all Netscape browsers: Start your Netscape browser, or restart it if it is already up.

JavaTM Web Start Installation Instructions

Java RE 1.4.0 includes the Java Web Start product. In the top-level directory you will find a ZIP file named javaws-1_0_1_02-solsparc-int.zip on SPARC platforms and javaws-1_0_1_02-solx86-int.zip on Intel platforms. Move this file to a location where you want to install the Java Web Start product (preferably outside the Java RE installation). Unzip the file. One of the files extracted will be install.sh. Run this script to install the Java Web Start product.

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 processors)
jre/lib/i386/client/libjvm.so (on x86 processors)
The path to the Java HotSpot Server VM is:
jre/lib/sparc/server/libjvm.so (on SPARC processors)
jre/lib/i386/server/libjvm.so (on x86 processors)
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.