Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » started tutorial(error in first project)
started tutorial [message #1858681] Sun, 16 April 2023 01:23 Go to next message
william mccrary is currently offline william mccraryFriend
Messages: 1
Registered: April 2023
Junior Member
eclipse auto-generated the following class definition as i was using the tutorial. when i tried to run the stub i got the message below.

what's the problem?

public class HelloWorld {

public static void main(String[] args) {
// TODO Auto-generated method stub

}

}


Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: C:\Users\19092\eclipse-workspace\HelloWorld\bin
Caused by: java.lang.module.InvalidModuleDescriptorException: HelloWorld.class found in top-level directory (unnamed package not allowed in module)
Re: started tutorial [message #1858683 is a reply to message #1858681] Sun, 16 April 2023 07:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33155
Registered: July 2009
Senior Member
Either don't define classes without a package or done' include the module-info.java in the project. Modular projects to not allow you to define package-less classes.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Why wont ImageIcons work
Next Topic:NuEclipse Debug
Goto Forum:
  


Current Time: Tue May 28 08:49:37 GMT 2024

Powered by FUDForum. Page generated in 0.08597 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top