saving . . . saved error while running EclipseDemo file has been deleted. error while running EclipseDemo file has been hidden .
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 03-06-22, 12:34 p.m. swatisaista30@gmail.com

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.
06-06-22, 4:25 p.m. hbammkanti


Log-in to answer to this question.