While trying to install a SiteMinder component, for instance Access Gateway, which requires a Java Virtual Machine in a server where openjdk is already installed, for instance in:
<openjdk_path>/11.0_24_8/bin/java
after specifying the java path in the installation prompt, this is not properly recognized and the system prompt to enter the path to a valid JVM again:
===================
Choose Java Virtual Machine
---------------------------
Select the path to a 64-bit JDK 1.8.x or 11.x
->1- Choose a Java VM already installed on this system
ENTER THE NUMBER FOR THE JAVA VM, OR PRESS <ENTER> TO ACCEPT THE
CURRENT SELECTION:
ENTER THE ABSOLUTE PATH TO THE JAVA VM EXECUTABLE OF YOUR CHOICE
: <openjdk_path>/11.0_24_8/bin/java
The provided path does not point to a valid Java Virtual Machine for this installation. Please choose again.
->1- Choose a Java VM already installed on this system
ENTER THE NUMBER FOR THE JAVA VM, OR PRESS <ENTER> TO ACCEPT THE
CURRENT SELECTION:
This seems to come from a feature introduced in varsion of jdk 11 or more where there is an improved validation of the zip64 extra fields contained within zip file and jar files (1). Those files not satisfying those new checks will fail validation and throw an error. This probably results in the installer breaking at this point.
Set
JAVA_TOOL_OPTIONS='-Djdk.util.zip.disableZip64ExtraFieldValidation=true'
before installation
(1) Please see: https://bugs.openjdk.org/browse/JDK-8315828 for detailed information about this feature