Results 1 to 5 of 5
  1. #1
    h3ckf1r3 is offline Member
    Join Date
    Jun 2008
    Posts
    11
    Rep Power
    0

    Default making a .main file

    I have a main.java file but it says it must be .main. When I run it it says select a main class and there are none in the list please help.

  2. #2
    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

    In the source package you should have a package(at least the default package). In that you should have the main.java file. Is that structure valid in your case.

  3. #3
    h3ckf1r3 is offline Member
    Join Date
    Jun 2008
    Posts
    11
    Rep Power
    0

    Default

    I solved it. The problem was tat I didnt have my void named main and the whole String[] arg stuff. SO I actually solved my problem an d my program is working almost perfectly except for a few t hrwos that I have to do. By the way how do you have more than 1 throw in a void.

    thx a lot

  4. #4
    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

    Are you talking about exceptions? What you mean throw in a void?

    Exceptions can be thrown more than one from method at a time.

  5. #5
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    6

    Default

    I think the initiator meant to say adding multiple Exceptions with a "throw" Clasue isnt it?
    To finish sooner, take your own time....
    Nivedithaaaa

Similar Threads

  1. Making triangle
    By banie in forum New To Java
    Replies: 4
    Last Post: 02-02-2008, 11:23 AM
  2. Help with making this algorithm better
    By RLRExtra in forum New To Java
    Replies: 6
    Last Post: 01-17-2008, 04:11 PM
  3. Making Plugins for Eclipse
    By javaplus in forum New To Java
    Replies: 0
    Last Post: 12-17-2007, 08:31 AM
  4. Replies: 1
    Last Post: 08-07-2007, 07:10 AM
  5. Replies: 1
    Last Post: 08-06-2007, 09:11 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
  •