简体   繁体   中英

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

I have just start a SPRING BOOT project using:

  • Jdk-17.0.5
  • Maven

When I run the project I get the exception below: Error occurred during initialization of boot layer java.lang.LayerInstantiationException: Package jdk.internal.jimage.decompressor in both module jrt.fs and module java.base

I have read this answer , but I did not find this folder javafx in JAVA_HOME/lib/ as it was montioned in the solution.

This is what I have at lib folder:

enter image description here

@Holger and @nitind, Thank you for your help. In fact, i was using bad way to run my app. I was using: Run As then Run Configuration then Spring Boot then new configuration . Now I go to the Main class and I Run As Java Application .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM