*
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
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: 19653
    
  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.
 
 
subject: Editor does not contain a main type.
 
Similar Threads
eclipse editor does not contain main type
Error: The active editor does not contain a main type
Editor does not contain main type
Why i am getting Editor does not contain a main type?
eclipse - active editor does not contain a main type