Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Zwhaler

macrumors 604
Original poster
Jun 10, 2006
7,255
1,954
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.
 

Monkaaay

macrumors 6502
Jun 19, 2006
258
0
Richmond, VA
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.
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.