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

前端 未结 8 1351
庸人自扰
庸人自扰 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 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.

提交回复
热议问题