Error occurred during initialization of boot layer [message #1834578] |
Thu, 12 November 2020 11:39  |
Eclipse User |
|
|
|
I wanted to run the Hello World code in Java, but the following error has appeared:
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: C:\Users\Ioana Predi\eclipse-workspace\Project1\bin
Caused by: java.lang.module.InvalidModuleDescriptorException: MyClass.class found in top-level directory (unnamed package not allowed in module)
This is the code I tried to run:
public class MyClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World!");
}
}
My Java version is this:
javac 15.0.1.
How can I fix it?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03945 seconds