tags:

views:

395

answers:

3

I am trying to use Xcode 3.2 for java tool development. My project has no problem building and shows it built the file build.xml fine and also shows up in file folder fine. When I try to run the .java file, I get the error: "Buildfile: build.xml does not exist! Build failed". Running "ant -find build.xml" in Terminal produces "not found". I believe the problem is that I need to point to my own build.xml location, but I have no idea how to change which directory it looks for this file. Any help is greatly appreciated. -nick

Mac OS 10.6, Xcode 3.2.1 - method to create app: Organizer>New from template>Java Tool

A: 

The Ant manual says this:

When no arguments are specified, Ant looks for a build.xml file in the current directory and, if found, uses that file as the build file and runs the target specified in the default attribute of the <project> tag. To make Ant use a build file other than build.xml, use the command-line option -buildfile file, where file is the name of the build file you want to use.

So the answer your question is that you either need to change directory to the directory containing the build.xml file, or you need to add a -buildfile file option, where file is the pathname for the build file.

Stephen C
thanks for the response, I got it to build fine now. Turns out it was building fine, I was just running the .java file and not the entire built application. but now I know how to build via Terminal, thanks again! -nick
nick
A: 

how can i solve the same problem in window xp please

Moe
Surprisingly, the problem was solved here by selecting the entire project file to run, not just the .java file. Hope this helps on the windows side as well.
nick
A: 

thanks for the response, I got it to build fine now. Turns out it was building fine, I was just running the .java file and not the entire built application. but now I know how to build via Terminal, thanks again!

nick