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

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

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

main() -

Set se         


        
9条回答
  •  隐瞒了意图╮
    2020-12-11 05:51

    I got the same error under Arch Linux. The package java-openjfx installs its libraries into the lib directory of the openjdk, which seems to cause problems. I found a workaround by adding not the whole lib directory but only the needed libraries instead.

    In project structure > Libraries > + > Java > /usr/lib/jvm/default/lib > select needed libraries (holding ctrl) should look something like this

    Then in Run Configurations set the VM Options accordingly

        --module-path /usr/lib/jvm/java-14-openjdk/lib/javafx.base.jar:/usr/lib/jvm/java-14-openjdk/lib/javafx.controls.jar:/usr/lib/jvm/java-14-openjdk/lib/javafx.graphics.jar --add-modules=javafx.controls
    

    For my project it was enough to only add controls as module but the path to base and graphics were required to get it to run.

提交回复
热议问题