PDA

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




macman2790
Jan 18, 2007, 12:05 AM
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.



macman2790
Jan 18, 2007, 12:23 AM
never mind, i've figured it all out, i used ant based application jar instead of empty ant based project. made a big difference.

scan
Jan 18, 2007, 10:51 AM
never mind, i've figured it all out, i used ant based application jar instead of empty ant based project. made a big difference.

yes ant is great. you could also use Eclipse, which has ant integrated in it. Its quite convient