Results 1 to 3 of 3
  1. #1
    jpjava is offline Member
    Join Date
    Jul 2013
    Posts
    2
    Rep Power
    0

    Default first project help

    http://i40.tinypic.com/2qsm3rd.jpg

    why am I getting this error message
    Error: Could not find or load main class firstproject.FirstProject
    but the build is successful

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: first project help

    Quote Originally Posted by jpjava View Post
    first project help
    Please go through the Forum Rules, particularly the third paragraph.

    I also recommend you read up on How to ask questions the smart way.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,848
    Rep Power
    5

    Default Re: first project help

    Quote Originally Posted by jpjava View Post
    why am I getting this error message
    Because you're doing it wrong. Easy huh? So now you need to figure out WHAT you're doing wrong. Figure out = perform research.

    Error: Could not find or load main class firstproject.FirstProject
    Pro tip: try doing a google for java Error: Could not find or load main class. Let me explain how I got to that:

    1) start the search with the word Java, because that's the context
    2) paste the error you get
    3) but leave out the parts that are specific to you, in this case the class name

    but the build is successful
    The fact that it compiles only means that the code is syntactically correct. The program may still be riddled with bugs and you may make mistakes starting it up (which is the case now).

Similar Threads

  1. Replies: 7
    Last Post: 11-27-2012, 10:16 AM
  2. Replies: 1
    Last Post: 05-17-2012, 09:43 PM
  3. Creating a project in eclipse from existing project
    By Suraiya in forum New To Java
    Replies: 1
    Last Post: 10-08-2011, 09:14 AM
  4. Adding a project to an existing project
    By Seijuro in forum NetBeans
    Replies: 4
    Last Post: 08-08-2010, 10:15 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
  •