java: How do you build and run your project inside xcode instead of terminal?

Discussion in 'Mac Programming' started by macman2790, Jan 17, 2007.

  1. macrumors 6502a

    macman2790

    Joined:
    Sep 4, 2006
    Location:
    Texas
    #1
    I presume it's the build and go button, but that option isn't highlighted and i cant figure out what to do to get it to work. Is it somethig to do with targets? I've been able to do this function with netbeans before. The build function works and it says build successful and creates a .jar file. Then trying to open the .jar file it says the jar file cannot be launched please check for possible errors. It does compile fine and run in terminal using javac and java commands. I'm using the empty ant based java project in xcode also if that helps. Also which java option would be best suitable to use under xcode? I mean by the different options given when you create a new project.
     
  2. thread starter macrumors 6502a

    macman2790

    Joined:
    Sep 4, 2006
    Location:
    Texas
    #2
    never mind, i've figured it all out, i used ant based application jar instead of empty ant based project. made a big difference.
     
  3. macrumors 6502

    Joined:
    Oct 24, 2005
    #3
    yes ant is great. you could also use Eclipse, which has ant integrated in it. Its quite convient
     

Share This Page