Im doing an ant build, the command i use is
ant clean compile war
and apache ant is included in the path too,
c:\apache-ant-1.8.2\bin;
This is my PATH variable:
PATH=C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WIN
DOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\
System Center Operations Manager 2007\;C:\Java\jdk1.6.0_26\bin;C:\apache-ant-1.8
.1\bin
Now i get this error message,
'"java.exe"' is not recognized as an internal or external command,
operable program or batch file.
c:\apache-ant-1.8.2\binneeds to be in your system PATH so that the shell can find it. Your classpath is irrelevant for this purpose.You can add it at the prompt:
And you should be able to run
ant.But you want to persist this change so you don’t need to type this every time. To do so you’ll need to add it to the list of system or user variables. Follow the directions from here:
In step 4, add ;c:\apache-ant-1.8.2\bin to the end of the value, being careful to note the semicolon which seperates this new entry from the preceding PATH elements.