windows - cmd error: 'ANT' is not recognized as an internal or external command -


new here else discussed on site! anyway, i'm trying install ant on machine i'm getting error cmd:

'ant' not recognized internal or external command, operable program or batch file

when running ant -version or ant -v. i'm using windows 7 machine (sp 1).

echo %path% command returns

c:\programdata\oracle\java\javapath;c:\oracle11g\product\11.2.0\client_1\bin;c:\ program files (x86)\intel\icls client\;c:\program files\intel\icls client\;c:\wi ndows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspo wershell\v1.0\;c:\program files\intel\intel(r) management engine components\dal; c:\program files (x86)\intel\intel(r) management engine components\dal;c:\progra m files\intel\intel(r) management engine components\ipt;c:\program files (x86)\i ntel\intel(r) management engine components\ipt;c:\program files\tortoisesvn\bin; c:\users\hat10024\desktop\eclipse\apache-ant-1.9.4\bin;c:\program files\nodejs\; c:\users\hat10032\appdata\roaming\npm;c:\users\hat10032\appdata\local\android\sd k\platform-tools;c:\users\hat10032\appdata\local\android\sdk\tools;c:\apache-ant -1.9.5\bin\;c:\users\hat10032\appdata\roaming\npm 

actual value in path system variable is:

c:\programdata\oracle\java\javapath;c:\oracle11g\product\11.2.0\client_1\bin;c:\program files (x86)\intel\icls client\;c:\program files\intel\icls client\;%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\v1.0\;c:\program files\intel\intel(r) management engine components\dal;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\ipt;c:\program files (x86)\intel\intel(r) management engine components\ipt;c:\program files\tortoisesvn\bin;c:\users\hat10024\desktop\eclipse\apache-ant-1.9.4\bin;c:\program files\nodejs\;c:\users\hat10032\appdata\roaming\npm;c:\users\hat10032\appdata\local\android\sdk\platform-tools;c:\users\hat10032\appdata\local\android\sdk\tools;%ant_home%\bin\

i know ugly , long , shouldn't way other solutions i've been reading appreciated! thanks!!

go apache ant , download zip file.

extract folder tomcat or other apache in.

go system porperties >> environmen variables

in user variables click new >> add

  • variable name: ant_home

  • variable value: c:\program files\apache software foundation\apache-ant-1.9.6

in path add

  • c:\program files\apache software foundation\apache-ant-1.9.6\bin

if u want add 2 path then

  • "c:\program files\apache software foundation\apache-ant-1.9.6\bin"; "c:\program files\apache software foundation\apache-maven-3.3.9\bin"

then go cmd , type ant -version

should work fine.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -