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

Time:12-14

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

CodePudding user response:

@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.

  • Related