File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running an Application in Eclipse

 
Mark Hogan
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am a newbie to Eclipse and have a problem with it . When i run a 1 file application , it run corectly . But when i write a 2 file application and run it , Eclipse prduce an error messege like this : Error: Could not find or load main class LabelTest .... I have these 2 files : LabelFrame.java and LabelTest.java ... The main method is defined in LabelTest.java.....a pic of Eclipse is uploaded by attachments............Please help me....Thanks
untitled.JPG
[Thumbnail for untitled.JPG]
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think this error has anything to do with the main method, mainly because the error for a missing main method is different. Instead, I suspect that one of the classes you are referencing is not being loaded. To verify my assertion, comment out the contents of the main method and replace it with a simple System.out.println(); it should then run. If that is the case, then we can try to figure out why the swing classes are not loading.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic