aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Editor does not contain a main type. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Editor does not contain a main type." Watch "Editor does not contain a main type." New topic
Author

Editor does not contain a main type.

jose chiramal
Ranch Hand

Joined: Feb 12, 2010
Posts: 266
I get a error, editor doesnt contain a main type. What does this mean ? I have a main in my pogram, so not sure why am getting this error. And also the code was working before as normal. Please assist.
jose chiramal
Ranch Hand

Joined: Feb 12, 2010
Posts: 266
Am using RAD 7.0
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

You don't have a class with a public static void main method, or at least the currently active class doesn't have this.

Moving to our IDEs forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What *precisely* is happening, and under what circumstances? If you're having an issue with Eclipse itself, I've seen errors similar to this when the workspace gets corrupted.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Editor does not contain a main type.