1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Compiling with xcode

Discussion in 'Mac Programming' started by Uma888, Feb 27, 2006.

  1. macrumors 6502

    #1
    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
     
  2. macrumors regular

    ekenny

    #2
    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.
     
  3. macrumors 603

    gekko513

    #3
    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
     
  4. macrumors 6502

    #4
    Thanks
     

Share This Page