This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Open Source Projects and the fly likes ant command, java command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "ant command, java command" Watch "ant command, java command" New topic
Author

ant command, java command

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
A novice at using Ant, I am attempting to use the "ant" command, and instead am getting a list of java options one would get when using the "java" command with no options. In other words, when I enter "ant" and return, the result is the same as if I enter "java" and return. Any idea what might be causing this apparent mixup between ant and java? I have tried quite a few different things, and am stumped. I even moved the build.xml file etc into the apache\bin directory, and am getting the same result. Your help is much appreciated.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Soon after posting my message yesterday, I discovered that ant.bat was inserting a "\" in one of the filepaths that I was not expecting; this conflicted with one of my filepaths in an environment variable I created, so the filepath ant used had a "\\".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant command, java command