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

Uma888

macrumors 6502
Original poster
Jan 10, 2005
411
0
Birmingham, United Kingdom
iv just started learning Java and C.

Iv added some simple lines of code in to xcode, but i cant seem to find a way to compile my code :S iv been through every menu and cant seem to find "compile" anywhere :S, i have seen build, but i cant use it, tis blocked out :S

Please help

BTW: i have been using JGrasp eversince, but i want to experiment with xcode
 

ekenny

macrumors regular
May 28, 2005
178
0
New York
You can only compile your code if you start a project. If you just simply open the editor and start coding away, you will not be able to build it.
 

gekko513

macrumors 603
Oct 16, 2003
6,301
1
What ekenny said. To start a simple Java stand alone application project:

1. Select "File -> New Project"
2. Select "Java -> Java Tool"
3. Click "Next"
4. Enter a project name like "MyName"
5. Click "Finish"
6. Double click "MyName.java"
7. Program
8. Click "Build and Go"
9. Repeat from 7
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.