Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Angry Complete code won't run in eclipse

    InvoiceGuiApp.txt
    Invoice.txt
    The code for InvoiceGuiApp and Invoice have absolutely no errors in it but it just won't give me the option to run in eclipse.
    InvoiceGuiApp is the program.

    If someone could look at it and tell me why it won't run that would be helpful as it is due today and I might fail the class if I don't turn it in. It is completed, but my teacher won't accept it if it doesn't run.
    Other programs that are in this package run fine, it's just this one that won't work.

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

    Default

    Your main method declaration is wrong.

    Java Code:
    public  void main( String[] args )  // declare main method
    This is just a method, not a main method. It should be like this,

    Java Code:
    public static void main( String[] args )

  3. #3
    bishnu is offline Member
    Join Date
    Dec 2008
    Location
    Mumbai
    Posts
    5
    Rep Power
    0

    Cool Run in eclipse

    Hii all

    if you want run a simple java application then we must assured that the program must contain tha main method like

    public static void main(String args[])
    {
    }

    then save the programme,then go to run then select run as then click on the select java application.........

    or if you wnt to run we application then 1st you have to configure the eclipse eith any server......for this go to window>show view>other>server>servers>then you select the server.....

Similar Threads

  1. Download the Complete API?
    By JDCAce in forum NetBeans
    Replies: 2
    Last Post: 10-02-2008, 02:02 AM
  2. Please complete the setRate mthod
    By Adiel224 in forum New To Java
    Replies: 6
    Last Post: 09-19-2008, 11:41 AM
  3. Removing empty lines from code using Eclipse
    By javaplus in forum Eclipse
    Replies: 1
    Last Post: 12-14-2007, 10:21 PM
  4. how to debug java code in eclipse
    By rajesh058 in forum Advanced Java
    Replies: 3
    Last Post: 07-26-2007, 12:19 AM
  5. Replies: 1
    Last Post: 04-26-2007, 04:52 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
  •