Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Main class not found(Error message: Could not find or load main class)
Main class not found [message #1799203] Sat, 01 December 2018 19:58 Go to next message
Sinem Süzoglu is currently offline Sinem SüzogluFriend
Messages: 1
Registered: December 2018
Junior Member
Hi, I have a problem with my class file.
When I run it I get the error message:
"Could not find or load main class".

Contents of the class file:

public class test {

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


Thanks in advance.
Re: Main class not found [message #1799209 is a reply to message #1799203] Sun, 02 December 2018 10:24 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 539
Registered: August 2014
Senior Member
There is no code to run in your main() method.


Tauno Voipio
Re: Main class not found [message #1800509 is a reply to message #1799209] Mon, 31 December 2018 08:47 Go to previous message
john 0804 is currently offline john 0804Friend
Messages: 3
Registered: December 2018
Junior Member
You need to make sure that the class name saved as Also, you need to have some code inside main() method. For example you can use System.out.println(""); inside the main method.

Previous Topic:EMF,Graphiti Training
Next Topic:Graphiti Combo Feature
Goto Forum:

Current Time: Thu Apr 02 21:20:35 GMT 2020

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

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

Back to the top