Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error message run I tried to run the hello world in java(Error message)
Error message run I tried to run the hello world in java [message #1809203] Thu, 11 July 2019 12:47 Go to next message
Sergeant Smiley is currently offline Sergeant SmileyFriend
Messages: 1
Registered: July 2019
Junior Member
Why do I get this message when I tried to run a java program? What do I need to do so this won't continue to happen when I'm trying to run my Java program in Eclipse?

error occurred during initialization of boot layerjava.lang.module.findexception: error reading module: c:\coderepository\myproject\bincaused by: java.lang.module.invalidmoduledescriptorexception: myclass.class found in top-level directory (unnamed package not allowed in module)
Re: Error message run I tried to run the hello world in java [message #1809213 is a reply to message #1809203] Thu, 11 July 2019 16:47 Go to previous message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 3437
Registered: July 2009
Senior Member

Declare your class as being in a package, using the package keyword, or don't have a and cause it to be treated like a Java module.

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Unable to install GEF on eclipse 2018-12
Next Topic:Eclipse is not getting installed
Goto Forum:

Current Time: Sat Jul 20 02:06:18 GMT 2019

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

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

Back to the top