So I recently installed eclipse on my win10 PC, and I created a public class. This is the code:
package comex;
public class MyClass { public static void main(String[] args) { // TODO auto-generated method stub
System.out.println("Hello World!") } }
Next, an error showed:
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)
Then, I deleted the info.java file and the following error has showed:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at MyClass.main(MyClass.java:6)
What can I do to fix this?