RuntimeException: Package jdk.internal.jimage.decompressor in module jrt.fs and module java.base

后端 未结 9 1745
醉酒成梦
醉酒成梦 2020-12-11 05:30

Component Details - Using IntelliJ IDEA 2017.1 CE and jdk-9-ea+154

main() -

Set se         


        
9条回答
  •  旧时难觅i
    2020-12-11 05:46

    $JAVA_HOME/lib/jrt-fs.jar contains a copy of the "jrt" file system provider compiled to JDK 8. It's for tools such as IDEs that run on JDK 8 but need to access a JDK 9 run-time image.

    From the exception then it does appear that this JAR file, or maybe $JAVA_HOME/lib, has been put on the module path in error. JAR files that do no contain a module-info.class in the top-level directory are treated as automatic modules so this is why the exception has "module jrt.fs" in the message. The exception basically just means that you've ended up with two modules containing the jdk.internal.jimage.decompressor package (and many other packages) due to putting jrt-fs.jar on the module path.

提交回复
热议问题