I'm Lost (XCode and Java)

Discussion in 'Mac Programming' started by Zwhaler, Oct 7, 2007.

  1. Zwhaler macrumors 603

    Zwhaler

    Joined:
    Jun 10, 2006
    #1
    All I want to do is to write Java programs... but I have no idea where to start while using XCode. Lets say I wanted to make a "Hello World" program (just so I get on the right track) which type of Java app do I choose when I try to open a new project? There's like 10 different ones and I have no idea which one to choose. How do I compile? How do I run the app? The old Windows 2000 computers I use at school to do this - they actually work (and are easy to use) I am not bashing XCode I just want to be able to use it :) Someone help me... thanks.
     
  2. toddburch macrumors 6502a

    Joined:
    Dec 4, 2006
    Location:
    Katy, Texas
    #2
    File -> New Project -> Java Tool will give you a "Hello World" template.

    Todd
     
  3. Monkaaay macrumors 6502

    Monkaaay

    Joined:
    Jun 19, 2006
    Location:
    Richmond, VA
    #3
    I don't see what's so difficult. In the New Project window there is an entire section on Java. 6 of those options are non-Ant related and 2 of them are non-GUI related. If you know what JNI is, you'd know to pick Java Tool. Even if you don't, you should be able to narrow it down enough to figure it out. As a last resort, simply trying each option would have taught you something in the process.

    Calm down, take a deep breath, and read the various options. :) It's all a learning process.
     
  4. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #4
    Xcode isn't exactly great for Java development, but it has syntax colouring, so if you compile on the command line with javac its fine for beginners. As the others have said starting with a Java Tool is the right way to begin but really you just want to use Xcode as a text editor here, for real Java development Eclipse or Netbeans are better.
     

Share This Page