error while running EclipseDemo file
Title
Question
Dear sir, I am using eclipse latest version on windows 10. While writing the project name i got error asking for lowercase letter. module name something it said.On running the program I got the following error.
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: C:\Users\sw\eclipse-workspace\EclipseDemo\bin
Caused by: java.lang.module.InvalidModuleDescriptorException: DemoClass.class found in top-level directory (unnamed package not allowed in module)
How to resolve?
Java Getting-started-Eclipse 02-03 min 10-20 sec
Answers:
Dear User,
In the "New Java Project" dialog, "Create module-info.java file" option is checked, so you get this "New module-info.java" dialog. In the "New module-info.java" dialog the module name is prefilled with the project name. If you don't want a module-info.java file, click Don't Create.
Login to add comment