Java installations (19, 20) on jenkins have problems
Summary
I observed two issues with Java installations on https://ci.eclipse.org/objectteams
-
file /opt/tools/java/openjdk/jdk-19/19.0.1/jmods/java.base.jmod is not readable (except for root), causing test failures
-
trying jdk-20 instead (via JAVA_HOME and PATH) caused failure to run ant, with this message
Error: missing 'server' JVM at /opt/tools/java/openjdk/jdk-20/20.0.2/lib/server/libjvm.so. Please install or use the JRE or JDK that contains these missing components.
I cannot say why a 'server' JVM is sought.
Impact
Meanwhile I migrated to building on jdk-21, which doesn't have these issues.
Reporting the issues only in case it might help others to save the time understanding mysterious build failures