Failed to build dl4j-examples, compilation error

Have clone the newest version of dl4j-examples.
Ran the following command for dl4j-examples:
mvn clean install
but the following error is reported:
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 117 source files to …\dl4j-examples\dl4j-examples\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] …/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/examples/advanced/features/transferlearning/editlastlayer/EditLastLayerOthersFrozen.java:[23,47] 无法访问(cannot access)org.deeplearning4j.nn.conf.distribution.NormalDistribution
错误的类文件(incorrect class file): ….m2\repository\org\deeplearning4j\deeplearning4j-nn\1.0.0-M2.1\deeplearning4j-nn-1.0.0-M2.1.jar(org/deeplearning4j/nn/conf/distribution/NormalDistribution.class)
类文件具有错误的版本 55.0, 应为 52.0(incorrect version of class file 55.0, should be 52.0)
请删除该文件或确保该文件位于正确的类路径子目录中。(Please delete this file or garantee that file is within the correct subdirectory of the class path.)
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:17 min
[INFO] Finished at: 2022-09-08T02:29:51+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project dl4j-examples: Compilation failure
[ERROR] …/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/examples/advanced/features/transferlearning/editlastlayer/EditLastLayerOthersFrozen.java:[23,47] 无法访问(cannot access)org.deeplearning4j.nn.conf.distribution.NormalDistribution
[ERROR] 错误的类文件(incorrect class file): ….m2\repository\org\deeplearning4j\deeplearning4j-nn\1.0.0-M2.1\deeplearning4j-nn-1.0.0-M2.1.jar(org/deeplearning4j/nn/conf/distribution/NormalDistribution.class)
[ERROR] 类文件具有错误的版本 55.0, 应为 52.0(incorrect version of class file 55.0, should be 52.0)
[ERROR] 请删除该文件或确保该文件位于正确的类路径子目录中。(Please delete this file or garantee that file is within the correct subdirectory of the class path.)
[ERROR]
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoFailureException - Apache Maven - Apache Software Foundation
What could be the cause? Thanks in advance!
Any hint/guidance would be appreciated.

Is this error very difficult to solve for DL4J expert?

@TempKonduitUser1 please use java 11. We mention the upgrade to the java version in the release notes. All of your problems are either unrelated to the library itself (I can’t fix your networking issues) or just not being up to date with the release.

Changes like that will happen. Always try to read the release notes. We make that as easy as possible by highlighting important changes for users:

Your error here is actually a general java error that is very solvable with a search engine as well. If you copy and paste that error message you’d see that that was a complaint from the compiler about java 8 trying to compile with java 11 source code/libraries.