Results 1 to 3 of 3
  1. #1
    jan2321 is offline Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Default compile classes with no main type

    Hello,

    i am trying to build a java class in eclipse which does not contain a main class. however when i try the run command eclipse complains about the missing main type. is there a way to do that in eclipse similar to javac from the command line

    thank you

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Eclipse compiles on the fly, I believe.

    Edit: I was wrong. Try Build -- Build Project. That will likely do what you want.
    Last edited by Fubarable; 07-20-2009 at 06:43 PM.

  3. #3
    jan2321 is offline Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

Similar Threads

  1. editor does not contain a main type
    By gabriel in forum Eclipse
    Replies: 6
    Last Post: 01-22-2013, 09:00 PM
  2. Error Message:Editor does not contain main type
    By Deepa in forum New To Java
    Replies: 9
    Last Post: 07-03-2009, 03:58 AM
  3. Classes and main methods?
    By CyberFrog in forum New To Java
    Replies: 17
    Last Post: 05-26-2009, 04:47 AM
  4. Replies: 2
    Last Post: 04-04-2009, 05:03 PM
  5. Replies: 1
    Last Post: 12-18-2007, 10:41 AM

Posting Permissions

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