I have just start a SPRING BOOT project using:
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:
@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.