How to use OpenJDK with OE 11.7.5 ?

Posted by jaredm on 08-Mar-2020 23:57

Progress OpenEdge 11.7.5 comes bundled with Oracle Java 8 update 101 (JDK & JRE).

OE 11's installer insists on installing the bundled Oracle Java 1.8.0_101 and tailoring itself for it.

Our corporate security requires an updated Java 8 release. Minimum acceptable: Java 8 update 241. Earlier updates are deemed “vulnerable”.

The latest version of OpenJDK 1.8.0_242 has been manually installed on the DB server (RHEL 6.10). This is 'Progress certified & supported'.

What is required to make the Progress OE 11 installer use a pre-existing Java (OpenJDK), rather than install and use its bundled (Oracle) version?

Alternatively, what are the steps to replace the Progress-installed (Oracle) Java with a supported OpenJDK version, such as when new critical Java security updates are released?

Manual search & replace (re-tailor) multiple config files is NOT desirable, e.g.:

$DLC/installd.ini:

javaHome=/aux/apps/psc/oe117/jdk

$DLC/bin/java_env:

   "Linux")

     JDKHOME=/aux/apps/psc/oe117/jdk 

$DLC/properties/AdminServerPlugins.properties:

   classpath=/aux/apps/psc/oe117/jdk/lib/tools.jar,/aux/apps/psc/oe117/java/progress.jar

$DLC/properties/JavaTools.properties:

   classpath=/aux/apps/psc/oe117/jdk/lib/tools.jar,/aux/apps/psc/oe117/java/progress.jar

Would the following resolve the issue?

# Archive the existing DLC subdirs, and replace with symlinks to the desired Java version installation dir:

mv /aux/apps/psc/oe117/jdk /aux/apps/psc/oe117/jdk_old

mv /aux/apps/psc/oe117/jre /aux/apps/psc/oe117/jre_old

ln -s /usr/java/jdk8u242-b08 /aux/apps/psc/oe117/jdk

ln -s /usr/java/jdk8u242-b08 /aux/apps/psc/oe117/jre

Posted by Roy Ellis on 09-Mar-2020 12:42

Hello,

in version 11.7 there is no way to specify a different JDK during the install.

In 11.7, the best way to update the JDK/JRE is to copy the files from the new JDK/JRE into the $DLC/jdk and $DLC/jre, or as you suggested, symbolic links.

In 12.1 we removed the JDK from the cdimage and the install asks for a valid JDK version path. And we added a single file where the JAVA_HOME can be changed making it easier to update the location of a new JDK, $DLC/properties/java.properties.

Thanks, Roy

All Replies

Posted by Roy Ellis on 09-Mar-2020 12:42

Hello,

in version 11.7 there is no way to specify a different JDK during the install.

In 11.7, the best way to update the JDK/JRE is to copy the files from the new JDK/JRE into the $DLC/jdk and $DLC/jre, or as you suggested, symbolic links.

In 12.1 we removed the JDK from the cdimage and the install asks for a valid JDK version path. And we added a single file where the JAVA_HOME can be changed making it easier to update the location of a new JDK, $DLC/properties/java.properties.

Thanks, Roy

Posted by jaredm on 09-Mar-2020 16:58

Thanks Roy!

This thread is closed