Oracle Java on OpenShift Containers

Latest response

Are all the Linux OpenShift containers containing only java OpenJdk or there are some with OracleJdk?

Responses

Hi Sipho,

ORACLE Java is proprietary software and hence not available in Red Hat containers and repositories. :)

Regards,
Christian

Sipho,

Try this from your properly subscribed system. This was my output (scroll down) NOTE: I currently do not have openshift entitlements, so try it on your system. and see what is listed.

Additionally, see https://access.redhat.com/articles/3253281, and especially this https://developers.redhat.com/blog/2018/09/24/the-future-of-java-and-openjdk-updates-without-oracle-support/.

 yum search jdk
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
============================================================================================================= N/S matched: jdk =============================================================================================================
copy-jdk-configs.noarch : JDKs configuration files copier
java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-headless.x86_64 : The OpenJDK runtime environment without audio and video support
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk.i686 : OpenJDK Runtime Environment
java-1.8.0-openjdk-debug.x86_64 : OpenJDK Runtime Environment with full debug on
java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.8.0-openjdk-devel.i686 : OpenJDK Development Environment
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk-headless.i686 : OpenJDK Runtime Environment
java-1.8.0-openjdk-headless-debug.x86_64 : OpenJDK Runtime Environment with full debug on
java-11-openjdk.i686 : OpenJDK Runtime Environment 11
java-11-openjdk.x86_64 : OpenJDK Runtime Environment 11
java-11-openjdk-devel.i686 : OpenJDK Development Environment 11
java-11-openjdk-devel.x86_64 : OpenJDK Development Environment 11
java-11-openjdk-headless.i686 : OpenJDK Headless Runtime Environment 11
java-11-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 11
maven30-slf4j-jdk14.noarch : jdk14 module for slf4j
rh-java-common-slf4j-jdk14.noarch : jdk14 module for slf4j
rh-maven35-slf4j-jdk14.noarch : SLF4J JDK14 Binding
icedtea-web.x86_64 : Additional Java components for OpenJDK - Java browser plug-in and Web Start implementation
ldapjdk.noarch : The Mozilla LDAP Java SDK
rh-thermostat16-thermostat.x86_64 : A monitoring and serviceability tool for OpenJDK
thermostat1-thermostat.x86_64 : A monitoring and serviceability tool for OpenJDK

Regarding Java...:

 yum search java | grep ^java
java-atk-wrapper.i686 : Java ATK Wrapper
java-atk-wrapper.x86_64 : Java ATK Wrapper
javamail.noarch : Java Mail API
javapackages-tools.noarch : Macros and scripts for Java packaging support
javassist.noarch : The Java Programming Assistant provides simple Java bytecode
java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-headless.x86_64 : The OpenJDK runtime environment without
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk.i686 : OpenJDK Runtime Environment
java-1.8.0-openjdk-debug.x86_64 : OpenJDK Runtime Environment with full debug on
java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.8.0-openjdk-devel.i686 : OpenJDK Development Environment
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk-headless.i686 : OpenJDK Runtime Environment
java-1.8.0-openjdk-headless-debug.x86_64 : OpenJDK Runtime Environment with full
java-11-openjdk.i686 : OpenJDK Runtime Environment 11
java-11-openjdk.x86_64 : OpenJDK Runtime Environment 11
java-11-openjdk-devel.i686 : OpenJDK Development Environment 11
java-11-openjdk-devel.x86_64 : OpenJDK Development Environment 11
java-11-openjdk-headless.i686 : OpenJDK Headless Runtime Environment 11
java-11-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 11
java-client.noarch : Organizational server (httpd) SSL key-pair/key-set.

Run the yum search commands on your system to see how this goes. With OpenShift, it might be a little different.

Regards,

RJ

Hi Sipho,

I recommend and suggest that you install OpenJDK (8 and/or 11) as pointed out by RJ in his response above ...
If you really need ORACLE Java, you have to download the binaries from their website and install it manually. :)

Regards,
Christian

Hi Christian

The OpenShift images/containers on RedHat Access does not installation without root permission.

 Error while doing RPMdb copy-up:
[Errno 13] Permission denied: '/var/lib/rpm/Packages'
You need to be root to perform this command.

Hi Sipho,

That is normal and designed by default for security reasons.
Installations on RHEL systems require elevated privileges. :)

Regards,
Christian

Hi Christian

Thanks a lot, it makes sense now.

Regards Sipho

You're welcome, Sipho ! :)

Hi Guys

Thanks for the responses. the above commands are giving the following results

yum search java | grep ^java
ovl: Error while doing RPMdb copy-up:
[Errno 13] Permission denied: '/var/lib/rpm/Packages'
javamail.noarch : Java Mail API
javapackages-tools.noarch : Macros and scripts for Java packaging support
javassist.noarch : The Java Programming Assistant provides simple Java bytecode
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Runtime Environment
yum search jdk
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
ovl: Error while doing RPMdb copy-up:
[Errno 13] Permission denied: '/var/lib/rpm/Packages'
=============================================================================== N/S matched: jdk ================================================================================
copy-jdk-configs.noarch : JDKs configuration files copier
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Runtime Environment

Make sure to always run yum commands either as root or with sudo (configure sudo prior).

Kind Regards,

RJ