File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Why i am getting 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
Reply locked New topic
Author

Why i am getting Editor does not contain a main type?

pathipaka shayampet
Greenhorn

Joined: Jul 04, 2008
Posts: 5
Why i am getting Editor does not contain a main type..when i am running in eclipse IDE?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14190
    
  20

What kind of file are you trying to edit with Eclipse, and what's the filename?

Try searching on Google for: eclipse "Editor does not contain a main type"

and you might find some useful answers.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39044
    
  23
Have you created a class called Editor and tried to use it to start an application when it doesn't contain a main() method?
David Gill
Greenhorn

Joined: Feb 24, 2005
Posts: 19
Campbell Ritchie wrote:Have you created a class called Editor and tried to use it to start an application when it doesn't contain a main() method?



I just downloaded the source code examples for a Java Certification book and am getting the same error message when I try and run a java class inside eclipse. Yes I do have a main method inside the class. What now?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5835
    
    7

David, please to not wake the zombies. Please start a new topic and ask your question there. And consider this before posting: http://faq.javaranch.com/java/ItDoesntWorkIsUseless


JBoss In Action
 
GeeCON Prague 2014
 
subject: Why i am getting Editor does not contain a main type?