Error occurred during initialization of boot layer文件报错,如何解决

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error occurred during initialization of boot layer文件报错,如何解决相关的知识,希望对你有一定的参考价值。

Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: C:\Users\Lenovo\eclipse-workspace\vendingmachine\bin
Caused by: java.lang.module.InvalidModuleDescriptorException: VendingMachine.class found in top-level directory (unnamed package not allowed in module)
这是具体错误,求解求解

参考技术A

是因为你新建一个class的时候,将这个新建的class包没命名或命名错了。

以上是关于Error occurred during initialization of boot layer文件报错,如何解决的主要内容,如果未能解决你的问题,请参考以下文章

!MESSAGE Error occurred during status handling

解决ubuntu下error occurred during the signature verification

an error occurred during the file system check错误的解决

TestNG运作报错An interanl error occurred during:"Launching first"

用Eclipse运行Java文件报错Error occurred during initialization of boot layer

Error occurred during initialization of VM java/lang/NoClassDefFoundError