XCode obsessing over "Hello World!"

Discussion in 'Mac Programming' started by jaynano, Oct 5, 2006.

  1. jaynano macrumors newbie

    Joined:
    Aug 28, 2006
    #1
    Hello everyone. I seem to be having an odd issue, at least it is odd to me, because I don't understand the cause of it. I can start a brand new java application project in Xcode, and no matter what I build the only thing I get when I run the program is "Hello World!" from my Xcode Run Log. If I make a new Java Class Library in xcode, it always initializes with my HelloWorld.java file in the src directory. Anyway, my issue is that I can't resolve this, and whenever I try to make new java applications I'm thwarted by the program I wrote a month ago saying "Hello World!"

    please help if you know what's wrong.


    Source Code:

    resulting Log Output after compiling and running:
     
  2. cblackburn macrumors regular

    Joined:
    Jul 5, 2005
    Location:
    London, UK
    #2
    Set a breakpoint on the line of code with showInputDialog. Then launch the program in debug mode. Does the program ever execute the code? If not then you seem to have an incorrect entry point.

    Chris
     
  3. Krevnik macrumors 68030

    Krevnik

    Joined:
    Sep 8, 2003
    #3
    Could be that you need to make sure that the 'manifest' is correctly pointing at the GameOfLife class for main() instead of the HelloWorld class?
     
  4. iancapable macrumors 6502

    iancapable

    Joined:
    Oct 4, 2006
    Location:
    London, United Kingdom
    #4
    Use netbeans or eclipse hahaha

    No seriously... Delete any .class files and then recompile, or do a clean and recompile? It's obviously not compiled the class correctly.
     

Share This Page