3 Installation of JDK on Oracle Solaris
This topic includes the following sections:
System Requirements for Installing the JDK on Oracle Solaris
JDK 11 is supported on Oracle Solaris SPARC (64-bit), version 11 or later.
For supported processors and browsers, see Oracle JDK Certified Systems Configurations.
JDK Installation Instruction Notation for Oracle Solaris
Instructions for installing the JDK contain the interim.update.patch
notation that represents the update version number.
For JDK installation instructions that contain the notation interim.update.patch
, substitute the appropriate update version number. For example, if you are installing JDK 11, Interim 0, Update 0, and Patch 0, then the following string represents the name of the bundle:
JDK-11.interim.update.patch_solaris-sparcv9_bin.tar.gz
This string becomes:
JDK-11_solaris-sparcv9_bin.tar.gz
Installation of JDK on Oracle Solaris from Archive Binaries
You can install JDK 11 on an Oracle Solaris platform from archive binaries (.tar.gz
) and Image Packaging System (IPS), which is the Solaris Update Repository.
-
Download File:
jdk-11.interim.update.patch_solaris-sparcv9_bin.tar.gz
-
Architecture: 64-bit SPARC
-
Who Can Install: Anyone
The installation instructions for using these files are organized by the .tar.gz
file type. This technique allows you to install a private version of the JDK for the current user in any location without affecting other JDK installations. However, it involves manual steps to get some features to work.
Note:
See Installing JDK on Oracle Solaris 11 from IPS Packages for the recommended approach.Installing JDK on Oracle Solaris from Archive Binaries
You can install the JDK archive binary in any location that you can write to. It does not replace the system version of the Java platform provided by the Oracle Solaris OS..tar.gz
) on Oracle Solaris:
Installing JDK on Oracle Solaris 11 from IPS Packages
You can install JDK 11 on Oracle Solaris by using an IPS package.
jdk-11.interim.update.patch
package:
Specifying the Default Java Platform
If there are multiple versions of Java installed on the same image, then you can specify the default or preferred Java version using Mediator
. A Mediator
contains a set of links to different implementations of an application, where every link has the same mediator name and link path, but different target link paths.
View the Current Default Version
pkg mediator
command to display all mediators in the image and the current default Java version.$ /usr/bin/pkg mediator | grep java
Set the Default Java Version
Use thepkg set-mediator
command to set Java 11 as the default or preferred version. $ usr/bin/pkg set-mediator -V 11.interim.update.patch java