Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Launch Error Editor does not contain main type

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Launch Error Editor does not contain main type

    Hello,
    I have just downloaded Eclipse and have entered the first "hello world" program from a Java Textbook that I am using
    here is the code from the text that I entered on to Eclipse:

    public class HelloTester
    {
    public static void main(String[] args)
    {
    // display a greeting in the console window

    System.out.println("Hello, World!");
    }
    }


    When I press the 'run' button on the Eclipse toolbar, this error message pops up:

    Launch Error
    Editor does not contain a main type

    Please provide advice on how to solve this problem.
    Thanks
    AJ


  2. #2
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Launch Error Editor does not contain main type

    Looks good to me.

    Delete everything (or start a new project) and try again.

    --- Update ---

    Looks good to me.

    Delete everything (or start a new project) and try again.

Similar Threads

  1. Replies: 4
    Last Post: June 6th, 2012, 03:31 PM
  2. "Selection does not contain a main type"
    By siowmotion in forum Java IDEs
    Replies: 6
    Last Post: February 15th, 2012, 05:39 PM
  3. type conversion error
    By Xeenix in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 18th, 2011, 07:29 PM
  4. error: This method must return a result of type int
    By J05HYYY in forum What's Wrong With My Code?
    Replies: 7
    Last Post: January 13th, 2011, 05:26 PM
  5. Replies: 6
    Last Post: November 12th, 2010, 04:40 AM