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

Java 2 SDK Installation Instructions

 

Installation Notes

Java 2 SDK, Standard Edition
Version 1.4.0
Solaris Operating Environment

Japanese

Contents

System Requirements
Java 2 SDK Installation Instructions
     Installation of Self-Extracting Binary
     Installation of Packages
Java Plug-in Installation Instructions
Java Web Start Installation Instructions

System Requirements

The Java 2 SDK, Standard Edition, v. 1.4.0 (J2SDK 1.4.0) is intended for use on Solaris 2.6, Solaris 7, Solaris 8, and Solaris 9 Operating Environments.

Prior to installing the Java 2 SDK, 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.

Java 2 SDK Installation Instructions

32-bit versions of the Java 2 SDK are available for both Intel and SPARC processors. In addition, a supplemental release for 64-bit support is available for SPARC processors.

To install the 32-bit Java 2 SDK on either Intel or SPARC processors, follow the installation instructions below.

If you want to install the 64-bit Java 2 SDK on your SPARC platform, you must follow a two-step procedure. First, install the 32-bit Java 2 SDK using the installation instructions below. Second, install the supplemental support for 64-bit operation by following the 64-bit Installation Instructions.

J2SDK 1.4.0 is available in two installation formats.

  • A self-extracting binary file which can be used to install the Java 2 SDK in a location chosen by the user. This package can be installed by anyone (not only root users), and it can be installed in any location. It will not displace the system version of the Java platform suppled by the Solaris operating environment (unless you intentially install it in the same location as the system's Java platform, which requires you to be root user). If you are using this file, see Self-Extracting Binary below.

  • A .tar.Z file containing Solaris SUNW* packages to be installed with the pkgadd utility. Root access is required to install SUNW* packages. By default, SUNW* packages are installed in a location such that they replace the system version of the Java platform supplied by the Solaris operating environment. If you are using this bundle, see Installation of Packages below.

Note: When installed in the default location, J2SDK 1.4.0 will overwrite and replace any previous installation of J2SDK 1.3.0 or J2SDK 1.3.1.

J2SDK 1.4.0 will not automatically become the default Java platform. To make J2SDK 1.4.0 the default Java platform, see the note on Selecting the Default Java Platform at the end of this file.

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

Installation of Self-Extracting Binary

Follow these instructions if you want to use the self-extracting binary file to install the Java 2 SDK. If you want to install Solaris packages comprising the SDK, see Installation of Packages.

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 processors:
chmod +x j2sdk-1_4_0_<version number>-solaris-sparc.sh

On x86 processors:
chmod +x j2sdk-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.

Launch the self-extracting binary file. The binary code license will be displayed, and you will be prompted to agree to its terms. The Java 2 SDK files will be installed in a directory called j2sdk1.4.0_<version number>.

Installation of Packages

Follow these instructions if you want to use the pkgadd utility to install the Solaris packages for the Java 2 SDK. If you want to use the self-extracting binary file instead, see Self-extracting Binary above.

Please note that there is a bug in the uninstall scripts associated with some of the Java 2 SDK packages. See the Release Notes for more information.

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. Extract the contents of the compressed tar file:

On SPARC processors:
zcat j2sdk-1_4_0_<version number>-solaris-sparc.tar.Z | tar -xf -

On x86 processors:
zcat j2sdk-1_4_0_<version number>-solaris-i586.tar.Z | tar -xf -

This will create several packages (SUNWj3dmo, SUNWj3dev, SUNWj3man, SUNWj3rt, plus SUNWj3jmp containing Japanese man pages) along with the product license, README, and other release documentation.

3. Become root by running su and entering the super-user password.

4. Run the pkgadd command to install the packages.

On either x86 or SPARC processors:
pkgadd -d . SUNWj3rt SUNWj3dev SUNWj3man SUNWj3dmo

This will install the J2SDK 1.4.0 version into /usr/j2se; see the pkgadd(1) and admin(4) man pages for information on installing the SDK in a non-default location.

5. For Japanese users

If you previously installed the man page packages from J2SDK 1.3.0 or 1.3.1, remove them.
pkgrm SUNWjej3m SUNWjpj3m SUNWjuj3m
Then run the pkgadd command to install the new Japanese man page package:
pkgadd -d . SUNWj3jmp

6. Delete the tar files and extracted directories.

7. Exit the root shell.

Java Plug-in 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/

 

1. The location of the Plug-in (javaplugin.so) should be given with an absolute path—not relative to the installation location of the JRE.

2. Setting NPX_PLUGIN_PATH will override the default search path used by the browser. Therefore any plugin directories that the browser currently searches for plugins should also be added to the path.

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

 

Notes:

  1. Before you run regxpcom, as described below, first shut down the browser.
  2. setenv LD_LIBRARY_PATH <Netscape 6>:$LD_LIBRARY_PATH

If you do not add Netscape to your LD_LIBRARY_PATH you are likely get an error when you run regxpcom. The message will say that Open failed: No such file or directory.

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

After running the regxpcom command you should get a message saying that registration was successful for <jre>/plugin/sparc/ns610/libjavaplugin_oji140.so


If regxpcom does not register the Java Plug-in successfully—i.e., you get a registration-failed message or a core dump— try creating a link to the Java Plug-in libjavaplugin.so file in the Netscape 6 plugins directory.

cd <Netscape 6>/plugins
ln -s <JRE>/plugin/sparc/ns610/libjavaplugin_oji140.so .

Be sure to include the period at the end.

Note: Only one Java Plug-in can be registered at a time. When you want to use a different version, unregister the one you have and register the new version.

regxpcom -u <absolute path to Java Plug-in libjavaplugin.so file>

Example:

regxpcom -u ${JRE}/plugin/sparc/ns610/libjavaplugin_oji140.so
regxpcom ${JRE}/plugin/sparc/ns610/libjavaplugin_oji141.so

3. For Netscape 4.x browsers, restart your browser twice. For Netscape 6.x browsers, start up your browser.

In Netscape do Help -> About Plug-ins to confirm that the Java Plug-in is loaded.

Java Web Start Product Installation Instructions

J2SDK 1.4.0 includes the Java Web Start product. Inside the J2SDK's jre 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 2 SDK 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 Virtual Machine (VM) or Java HotSpot Server VM, as desired. The path within the Java 2 SDK to the Java HotSpot Client VM is:
jre/lib/sparc/client/libjvm.so (on SPARC platforms)
jre/lib/i386/client/libjvm.so (on x86 platforms)
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 SDK, and existing code that uses the Invocation API to launch an application based on old paths to the Exact or Classic VMs will not work.

Selecting the Default Java Platform

The /usr/java symbolic link is used to define the default Java environment on a Solaris system when more than one Java environment is installed. Currently, JDK 1.1 is installed in /usr/java1.1, J2SDK 1.2.2 is installed in /usr/java1.2, and J2SDK 1.3.0, J2SDK 1.3.1, and J2SDK 1.4.0 are installed by default in /usr/j2se (and will overwrite each other).

Prior to the Solaris 8 release, the /usr/java symbolic link pointed to /usr/java1.1 if both JDK 1.1 and J2SDK 1.2.2 were installed, making JDK 1.1 the default Java platform. Starting with the Solaris 8 release, the /usr/java symbolic link points to /usr/java1.2 by default if both JDK 1.1 and J2SDK 1.2.2 are installed, making J2SDK 1.2.2 the default Java platform.

Because there are symbolic links in /usr/bin (also known as /bin) that use /usr/java (for example, /usr/bin/java refers to /usr/java/bin/java), this /usr/java link can change the default Java installation seen by most users. Many Java applications run on any of J2SDK 1.4.0, J2SDK 1.3.1, J2SDK 1.2.2, or JDK 1.1, but users and applications might want to be selective about which Java installation they use.

If you want to use JDK 1.1, /usr/java1.1/bin should be on your PATH before /usr/bin. If you want to use J2SDK 1.4.0, /usr/j2se/bin should be on your PATH before /usr/bin.

It is possible for root users to make J2SDK 1.4.0 the default Java platform by modifying the /usr/java symbolic link to point to /usr/j2se. However, changing the symbolic link in this manner may cause problems for some Java applications that are expecting to use earlier versions of the Java platform. See the online compatibility documentation for information about incompatibilities between J2SDK 1.4.0 and earlier releases.

http://java.sun.com/j2se/1.4/compatibility.html