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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 14117
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38517
    
  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: 5823
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why i am getting Editor does not contain a main type?