Error occurred during initialization of boot layer FindException: Module not found

前端 未结 8 1352
庸人自扰
庸人自扰 2020-11-28 13:39

Executing a simple \"Hello World\" program using Java 9 results in the following error message:

Error occurred during initialization of boot layer

相关标签:
8条回答
  • 2020-11-28 13:59

    I faced same problem when I updated the Java version to 12.x. I was executing my project through Eclipse IDE. I am not sure whether this error is caused by compatibility issues.

    However, I removed 12.x from my system and installed 8.x and my project started working fine.

    0 讨论(0)
  • 2020-11-28 14:04

    check your project build in jdk 9 or not above that eclipse is having some issues with the modules. Change it to jdk 9 then it will run fine

    0 讨论(0)
  • 2020-11-28 14:07

    I solved this issue by going into Properties -> Java Build Path and reordering my source folder so it was above the JRE System Library.

    0 讨论(0)
  • 2020-11-28 14:14

    I just encountered the same issue after adding the bin folder to .gitignore, not sure if that caused the issue.

    I solved it by going to Project/Properties/Build Path and I removed the scr folder and added it again.

    0 讨论(0)
  • 2020-11-28 14:15

    The reason behind this is that meanwhile creating your own class, you had also accepted to create a default class as prescribed by your IDE and after writing your code in your own class, you are getting such an error. In order to eliminate this, go to the PROJECT folder → src → Default package. Keep only one class (in which you had written code) and delete others.

    After that, run your program and it will definitely run without any error.

    0 讨论(0)
  • 2020-11-28 14:16

    I had the same issue while executing my selenium tests and I removed the selenium dependencies from the ModulePath to ClassPath under Build path in eclipse and it worked!

    0 讨论(0)
提交回复
热议问题