Use these instructions if you want to use the pkgadd utility to install 64-bit support for the JDK.
1. Download and check the file size to ensure that you have downloaded the full, uncorrupted software bundle.
It's best to create a new directory to save the download bundle to, as the next step will extract several directories and files into this directory. The directory can be anywhere you choose.
Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.
2. Extract the contents of the compressed tar file&:
On SPARC processors:
zcat jdk-6<update>-solaris-sparcv9.tar.Z | tar -xf -
On x64/EM64T processors:
zcat jdk-6<update>-solaris-x64.tar.Z | tar -xf -
This creates several directories (SUNWj6rtx, SUNWj6dvx, and SUNWj6dmx) in the current directory, which contain 64-bit support for the JDK.
3. Become root by running su and entering the super-user password.
4. Uninstall any earlier installation of 64-bit packages for this version of the JDK.
IXDBA.NET社区论坛
If your machine has an earlier 64-bit version of the JDK installed in the default location (/usr/jdk/jdk1.6.0), you must remove it before installing a later 64-bit version at that location.
You can skip this step if you intend to install the 64-bit version of the JDK in a non-default location. For more details, see Selecting the Default Java Platform.
To uninstall the Solaris packages for the JDK, remove them by running:
On all processors:
pkgrm SUNWj6rtx SUNWj6dvx SUNWj6dmx
5. Run the pkgadd command to install the packages.
On all processors:
pkgadd -d . SUNWj6rtx SUNWj6dvx SUNWj6dmx
This command installs the files for 64-bit support into the JDK installation at /usr/jdk/jdk1.6.0.
6. Delete the tar files and extracted SUNW* directories.
7. Exit the root shell. No need to reboot.