This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 14952
    
  26

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: 43970
    
  33
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: 5852
    
    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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Why i am getting Editor does not contain a main type?
 
It's not a secret anymore!