See JDK 7 and JRE 7 Installation Guide for general information about installing JDK 7 and JRE 7.
For information on enhancements to JDK 7 that relate to the installer, see Installer Enhancements in JDK 7.
This version of the JRE is supported on the Oracle Solaris 10 Update 9 or later OS, Oracle Solaris 11 Express OS, and Oracle Solaris 11 OS. For supported processors and browsers, see Oracle JDK 7 and JRE 7 Certified System Configurations.
Make sure the jre-7 package is available from your IPS publisher.
$ pkg list -a jre-7 NAME (PUBLISHER) VERSION IFO runtime/java/jre-7 22.214.171.124-126.96.36.199.0.0 ---
If you see an "i" in the I column, then the package is already installed.
This package is available from the solaris publisher at pkg.oracle.com and also from other publisher origins. If you see a message that no such package is found, use the pkg publisher command to check your publisher origin and contact your system administrator or Oracle Support representative.
Make sure you have permissions to install IPS packages.
Use the profiles command to list the rights profiles that are assigned to you. If you have the Software Installation rights profile, you can use the pfexec command to install and update packages.
$ pfexec pkg install jre-7
Other rights profiles also provide installation privilege, such as the System Administrator rights profile.
Depending on the security policy at your site, you might be able to use the sudo command with your user password to execute a privileged command.
$ sudo pkg install jre-7
Use the roles command to list the roles that are assigned to you. If you have the root role, you can use the su command with the root password to assume the root role.
# pkg install jre-7
The following table lists the options available for downloading the JRE 7 release on the Oracle Solaris platform.
|Download File(s)||Architecture||Who Can Install|
|64-bit x64, EM64T||anyone|
Note: For any text on this page containing the following notation, you must substitute the appropriate JRE update version number for the notation.
For example, if you are installing update JRE 7 update release 1, the following string representing the name of the bundle:
Note that, as in the preceding example,
the <version> number is sometimes
preceded with the letter
u, for example,
and sometimes it is preceded with an underbar, for example,
You can install a JRE archive binary in any location that you can write to. It will not displace the system version of the Java platform provided by the Oracle Solaris OS.
Installing the JRE on a 64-bit system that allows a 32-bit JVM is a two-step process: first install the 32-bit JRE and then install the additional support for 64-bit operations. The file names are as follows:
On SPARC processors:
jre-7u<version>-solaris-sparc.tar.gz (32-bit) jre-7u<version>-solaris-sparcv9.tar.gz (64-bit)
On x64/EM64T processors:
jre-7u<version>-solaris-i586.tar.gz (32-bit) jre-7u<version>-solaris-x64.tar.gz (64-bit)
1. Download the bundles or bundle, if you are installing only the 32-bit version of Oracle Solaris. Before the file can be downloaded, you must accept the license agreement. The archive binaries can be installed by anyone (not only root users), in any location that you can write to.
.tar.gz archive file (also called a
tarball) is a file that can be simultaneously
uncompressed and extracted in one step.
2. Change directory to the location where you
would like the JRE to be installed. Move the
archive binaries to the current directory.
3. Unpack the tarball and install the JRE.
The following steps can be performed in either order.
On SPARC processors:
% gzip -dc jre-7u<version>-solaris-sparc.tar.gz | tar xf - % gzip -dc jre-7u<version>-solaris-sparcv9.tar.gz | tar xf -
On x64/EM64T processors:
% gzip -dc jre-7u<version>-solaris-i586.tar.gz | tar xf - % gzip -dc jre-7u<version>-solaris-x64.tar.gz | tar xf -
The JRE is installed in a directory called
jre1.7.0_<version> in the current directory.
For example, for the JRE 7 update 1 release, the directory would be
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
jre1.7.0_<version> directory where the
32-bit JRE was installed.
For example, on SPARC processors the 64-bit Java VM Library file
libjvm.so) is stored in the
directory, whereas the version for x64/EM64T is stored in the
You must register the Java Plugin component with Firefox for the Plugin to work. Instructions to do this can be found at Manual Installation and Registration of Java Plugin for Oracle Solaris.
Java Plugin is supported for the browsers listed in JDK 7 and JRE 7 Certified System Configurations.
If you are using a non-supported browser, check your browser documentation for details on registering the Java Plugin.
This JRE release includes Java Web Start; Java Web Start is automatically installed with the JRE. But note the following:
pkgaddutility use: (1) If you use the
pkgaddutility to install the Oracle Solaris packages for the JDK, a symbolic link for
../java/bin/javawsis created in
/usr/bin. (2) If you have a previous release of Java Web Start installed and you want the latest version to run instead, edit the
$HOME/.mailcapfile so that it is identical to
/etc/.mailcap. If you want the older version of Java Web Start to run, do not edit