Results 1 to 3 of 3
  1. #1
    masko is offline Member
    Join Date
    Jan 2009
    Posts
    1
    Rep Power
    0

    Default Problems with Eclipse

    Hi guys,

    I'm new in Java and I install last hour the program called "Eclipse"

    In my first little program, when I execute it, there's a window that shows me
    the message "Editor does not contain a main type".

    What's the cause of this message?

    Thanks!

  2. #2
    subashm28 is offline Member
    Join Date
    Jan 2009
    Posts
    6
    Rep Power
    0

    Default

    check whether in ur program main() fuction is available or not..
    and check spelling,syntax like below code....

    public class Sample{
    public static void main(String[] args) {
    System.out.println("main called");
    }
    }

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Yes, as subashm says in your Java class main method is not implemented. So you cannot run a Java class without a main method. Hope you get that error at run time, not at compile time.

Similar Threads

  1. Equinox problems running on Eclipse 3.4
    By jguerra in forum Eclipse
    Replies: 0
    Last Post: 09-05-2008, 02:34 PM
  2. problems in eclipse 3.3.2
    By KiDHaCK in forum Eclipse
    Replies: 0
    Last Post: 06-17-2008, 04:55 PM
  3. Problems with hibernate and eclipse
    By Albert in forum JDBC
    Replies: 2
    Last Post: 06-05-2008, 03:34 PM
  4. Problems with Eclipse
    By Daniel in forum Eclipse
    Replies: 1
    Last Post: 07-06-2007, 04:23 PM
  5. Problems with Eclipse and MyEclipse
    By Eric in forum Eclipse
    Replies: 1
    Last Post: 07-05-2007, 08:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •