XCode 3.0 Error

Discussion in 'Mac Programming' started by geonish, May 6, 2008.

  1. geonish macrumors newbie

    Joined:
    May 6, 2008
    #1
    My programs are building fine, and they look fine as well. They just will NOT run. I get the message:

    Debugging of "programName" ended normally.

    This is a screenshot.

    Please help me to get my XCode to actually RUN my programs. PLEASE.
     
  2. Guiyon macrumors 6502a

    Joined:
    Mar 19, 2008
    Location:
    North Shore, MA
    #2
    Your program can't run because you appear to be missing a definition for the main function in your StudentList class. Without this function, Java has no entry point and can't actually run anything so it's throwing a NullPointerException and exiting. I can't help much more without knowing more about the project.

    The definition should be in the form (inside the StudentList class):

    Code:
    static void main( String[] args ) {
       /* Main Code Here */
    }
     

Share This Page