Error while verifying Apache Ant install

So now ANT_HOME should lead to C:\Ant\apache-ant-1.10.10-bin\apache-ant1.10.10. Does it ?


Yes it does

What about your classpath.

Have you rerun the command. Make sure to click on Ok to save your variables otherwise the variables will not be saved and it will not work.

Does it look like this ?

2 Likes

image

And finally path ? post a screenshot

@Tekwizer it should be Path instead of PATH. Correct them

Done but still nothing
image

image

Open a command prompt window and type echo %JAVA_HOME% and post the result please

image

Maybe java jdk in not configured correctly and causes problems

@Tekwizer As far I am understanding , you have not saved your variable by clicking on Ok.
Please click on ok first then this window will be closed.It looks like

and then you will see another window something like this

Then again click on Ok then your variable will be saved
Then rerun your command

1 Like

I am clicking ok

also for better understanding pls take a look at this guide -

just try to restart and follow the steps in video

Try removing the spaces before and after the semicolons (;) in your path variable.

Also, make sure you restart your terminal after you make any changes to the environment variables.


However, like I’ve mentioned in both my articles, you should migrate to using Rush. Just like you might have experienced it now, setting up the environment for using AI2 sources and/or extension template could be a bit tedious if you haven’t done something like that before.

Rush solves this issue to some extent. Instead of having to download and install ten different programs on your machine, you just need JDK 8 and Rush to start building extensions. On top of that, you get a bunch of cool new features, like faster builds, direct support for using Android manifest, etc., when using Rush.

To know more about what Rush is and how to install it, head over to the following post :point_down:

3 Likes

Thanks @Shreyash :grinning:

2 Likes

I missed that cause I usually change settings from

and not from here

Thank you @Shreyash for your help

2 Likes

@Shreyash there is no path variables in mine PC , however ant command is working how is it possible if it is possible then I don’t think the problem was caused by spaces in path variable.

No way! The path variable must be there. Can you show me a picture that proves your statement?