3 Installation of the JDK on Oracle Solaris
This topic includes the following sections:
System Requirements for Installing the JDK on Oracle Solaris
JDK 17 is supported on Oracle Solaris SPARC (64-bit), version 11.4 or later.
For supported processors and browsers, see Oracle JDK Certified Systems Configurations.
Note:
JDK 17 for Solaris does not support the following:- Z Garbage Collector (ZGC)
- Application Class-Data Sharing (AppCDS)
- JVM Compiler Interface (JVMCI)
- Headful graphics
In addition, JDK 17 for Solaris does not include the following:
jpackage,jlink,jimage, orjmodtools- JMOD files for use with the
jlinktool
The Java 2D API is supported for printing purposes.
JDK Installation Instruction Notation for Oracle Solaris
For JDK installation instructions that contain the notation interim.update.patch (see Version-String Format), substitute the appropriate update version number. For example, if you are installing JDK 17, Interim 0, Update 19, and Patch 0, then the following string represents the name of the bundle:
jdk-17.interim.update.patch_solaris-sparcv9_bin.tar.gz
This string becomes:
jdk-17.0.19_solaris-sparcv9_bin.tar.gz
Installation of JDK on Oracle Solaris from Archive Binaries
You can install JDK 17 on Oracle Solaris from archive binaries (.tar.gz).
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 javaSet the Default Java Version
Use thepkg set-mediator command to set Java 17 as the default or preferred version. $ usr/bin/pkg set-mediator -V 17.interim.update.patch java