Skip to Main Content

Infrastructure Software

Announcement

Testing banner

How to install JDK 11 on Solaris 11 AMD64

User_GGFT0Aug 16 2022

Does JDK 11 support Solaris 11 AMD64? According to Installation of JDK on Oracle Solaris, JDK 11 is at least supported for Solaris 11 sparc, but the page does not explicitly say it is not supported for Solaris 11 AMD64.
Assuming the answer to the above question is yes, how can I install JDK 11 on Solaris 11 AMD64?
I know the recommended way to install is from IPS packages, but although I looked at the details here, I couldn't find anything that I could provide to pkg install that would work. All the commands I tried failed - for example:

# pkg install jdk-11.0.1.0
Failed to set locale: unsupported locale setting.  Falling back to C.
pkg: Unable to set locale 'en_US.UTF-8'; locale package may be broken or
not installed.  Reverting to C locale.

pkg install: The following pattern(s) did not match any allowable packages.  Try
using a different matching pattern, or refreshing publisher information:

        jdk-11.0.1.0

I confirmed that I have pkg.oracle.com as a publisher origin, and the page I link to above says that this package is available through this publisher:

# pkg publisher
Failed to set locale: unsupported locale setting.  Falling back to C.
pkg: Unable to set locale 'en_US.UTF-8'; locale package may be broken or
not installed.  Reverting to C locale.
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F http://pkg.oracle.com/solaris/release/
This post has been answered by User_GGFT0 on Aug 16 2022
Jump to Answer
Comments
Post Details
Added on Aug 16 2022
2 comments
14 views