ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pritesh saharey <>
Subject Re: problem using ant with win2000 and Jdk 1.4
Date Mon, 24 Mar 2003 11:17:19 GMT
Rajat pease tryout these steps
This is due to limitations in the OS's handling of the "for" batch-file statement,so please
change the name of the folder apache-ant-1.5.2 to ant.
2)Keep only bin and lib folder inside ant folder so that it looks like this in your E prompt

3)Make sure that you should have following minimum these jar files in your lib folder

4)Now set the path like this in your batch file
set ANT_HOME=E:\ant
set JAVA_HOME=F:\j2sdk1.4.0_03
set PATH=%PATH%;%ANT_HOME%\bin

then try to run the ant command after restarting your pc or i think win2000 doesn't need rebooting
of your pc .

hope this will work out


--- "Rajat" <> wrote:
>	I have downloaded and installed ant and set the required
>	environment variables like ANT_HOME etc. But When I am 
>	running any ant command like "ant -version", I am getting the
>	error " Exception in thread "main" java.lang.NoClassDefFoundError: Tomcat"
>	The details of my system are 
>	Windows 2000 Professional ( Shell : cmd.exe)
>	J2SDK1.4.0_03
>	ANT_HOME=E:\apache-ant-1.5.2
>	JAVA_HOME=F:\j2sdk1.4.0_03
>	Please tell me what I can do to solve this??
>	Regards,
>	Rajat
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Join Community  --->

Select your own custom email address for FREE! Get w/No Ads, 6MB, POP &

View raw message