For system requirements, see Solaris system requirements.
Installing the 64-bit JDK for the Solaris operating system on SPARC, x64, and EM64T platforms is a two-step process. These steps can be performed in either order, but you must install both sets of bundles for a given platform:
As with the installation of the 32-bit JDK, the 64-bit supplemental support is available in two installation formats; use the same installation format as you used for the installation of the 32-bit JDK.
Note: For any text on this page containing <update>
, you must substitute the appropriate JDK update version number (such as "_01"). For example, if you are installing update 1.6.0_01, the following
command:
chmod +x jdk-6<update>-solaris-sparcv9.sh
would become:
chmod +x jdk-6_01-solaris-sparcv9.sh
Note: The jre-1_6_0<update>-solaris-x64.sh
installer provides support for all processors that support the AMD 64-bit extensions to the Intel x86 architecture, including EM64T.
Follow these instructions to add 64-bit support to the JDK which has already been installed using the self-extracting binary. If you want to install Solaris packages comprising the JDK, see Installation of Solaris Packages.
You can download to any directory you choose; it does not have to be the directory where you want to install the JDK.
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.
chmod +x jdk-6<update>-solaris-sparcv9.sh
chmod +x jdk-6<update>-solaris-x64.sh
This is the directory that contains the jdk1.6.0<update>
directory of the 32-bit JRE. The next step installs the JDK into the current
directory.
Execute the downloaded file, prepending the path to it. For example, if the downloaded file is in the current directory, prepend it with "./
" (necessary if ".
" is not in the PATH environment variable):
./jdk-6<update>-solaris-sparcv9.sh
./jdk-6<update>-solaris-x64.sh
The binary code license is displayed, and you are prompted to agree to its terms.
The supplemental files for 64-bit support are installed in directories named for the machine architecture model, which are added at several locations within the same jdk1.6.0<update>
directory where the 32-bit JDK was installed. For example, on SPARC processors the 64-bit Java VM Library file ( libjvm.so
) is stored in the jre/lib/sparcv9/server
, whereas the version for x64/EM64T is stored in jre/lib/x64/server
.
Use these instructions if you want to use the pkgadd utility to install 64-bit support for the JDK.
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.
zcat jdk-6<update>-solaris-sparcv9.tar.Z | tar -xf -
zcat jdk-6<update>-solaris-x64.tar.Z | tar -xf -
This creates several directories (SUNWj6rtx
and SUNWj6dvx
) in the current
directory, which contain 64-bit support for the JDK.
su
and entering the super-user password.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
On all processors:
pkgadd -d . SUNWj6rtx SUNWj6dvx
This command installs the files for 64-bit support into the JDK installation at /usr/jdk/jdk1.6.0
.