刚刚开始学,写了个最基础的helloworld程序。在CMD里可以正常编译/运行,但在eclipse里面点击run的时候出现如下报错:
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: E:\J\workspace\Hello\bin
Caused by: java.lang.module.InvalidModuleDescriptorException: HelloWorld.class found in top-level directory (unnamed package not allowed in module)
在来贴吧之前去查了一下,说是因为package没命名,然而把package命名为h后依然出现同样的报错。
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: E:\J\workspace\Hello\bin
Caused by: java.lang.module.InvalidModuleDescriptorException: HelloWorld.class found in top-level directory (unnamed package not allowed in module)
在来贴吧之前去查了一下,说是因为package没命名,然而把package命名为h后依然出现同样的报错。