DL4J 1.0.0-M2 maven install failed on OpenJDK 17 with OpenJ9

the following key information

$ uname -r
4.18.0-348.20.1.el8_5.x86_64

$ echo $JAVA_HOME
/usr/java/jdk-17.0.2+8

$ java --version
openjdk 17.0.2 2022-01-18
IBM Semeru Runtime Certified Edition 17.0.2.0 (build 17.0.2+8)
Eclipse OpenJ9 VM 17.0.2.0 (build openj9-0.30.1, JRE 17 Linux amd64-64-Bit Compressed References 20220209_97 (JIT enabled, AOT enabled)
OpenJ9 - 9dccbe076
OMR - dac962a28
JCL - 316ae6c0611 based on jdk-17.0.2+8)

$ mvn --version
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: /opt/maven
Java version: 17.0.2, vendor: IBM Corporation, runtime: /usr/java/jdk-17.0.2+8
Default locale: en_US, platform encoding: UTF-8
OS name: “linux”, version: “4.18.0-348.20.1.el8_5.x86_64”, arch: “amd64”, family: “unix”

From Quick Start - Deeplearning4j
Section : DL4J Examples in a Few Easy Steps
Use the command line to enter the following
git clone GitHub - eclipse/deeplearning4j-examples: Deeplearning4j Examples (DL4J, DL4J Spark, DataVec)
cd dl4j-examples/
mvn clean install

[ERROR] Failed to execute goal com.lewisd:lint-maven-plugin:0.0.11:check (pom-lint) on project dl4j-examples: Execution pom-lint of goal com.lewisd:lint-maven-plugin:0.0.11:check failed: An API incompatibility was encountered while executing com.lewisd:lint-maven-plugin:0.0.11:check: java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.lewisd:lint-maven-plugin:0.0.11

[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not “opens java.util” to unnamed module @fb4e2469

Questions

  • Is DL4J( 1.0.0-M2) already compatible with OpenJDK 17 (Eclipse OpenJ9).
  • To solve this exception, shoud I have to add some JVM arguments , eg --add-opens …

Thanks.