Rajat pease tryout these steps
1)ANT_HOME=E:\ant
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
E:\ant\bin
E:\ant\lib
3)Make sure that you should have following minimum these jar files in your lib folder
ant.jar,junit.jar,optional.jar,xercesImpl.jar,xml-apis.jar
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
pritesh
--- "Rajat" <rajat.mishra@cellnext.com> wrote:
>Hi,
> 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: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
_____________________________________________________________
Join SQAtester.com Community ---> http://www.sqatester.com/testersarea/joinus.htm
_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP &
more! http://www.everyone.net/selectmail?campaign=tag
|