Installing a Java Development Environment on CentOS 7
· β 2 min read
1. Compilation Error: java.nio.file.NoSuchFileException When compiling a Jenkins plugin, the following error is reported:
1 2 3 4 mvn package Compilation failure [ERROR] java.nio.file.NoSuchFileException: /root/java/target/classes/META-INF/annotations/hudson.Extension It turns out that Maven uses JAVA_HOME rather than PATH, so it cannot find a Java runtime. Java 11 does not work either β only Java 1.