ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Noack <>
Subject Re: Unable to run Ant
Date Tue, 09 Oct 2012 08:46:18 GMT
Hi Vishal,

Sounds like launcher is not in you classpath.
The best way is to set 2 environment-variables before running ant:
JAVA_HOME that points to your JDK (or JRE if you don't need tools.jar)  and
ANT_HOME that points to your ant installation directory.
see "Installing Apache Ant" (espacially chapter "Setup") and "Running 
Apache Ant" in

Kind Regards


Am 08.10.2012 12:54, schrieb Vishal Arora:
> Dear Sir/ Madam,
> Whenever i try to run apache ant in the console window i always encounter
> the error "*Error: Could not find or load main class
>*". I have been facing this  problem
> since i download Ant. I have tried many methods but the outcome is always
> nothing. I am using Java 7.
> Thank You

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message