Hi, ant.jar file in jakarta-ant-1.4.1\lib should be in your classpath at runtime. You run ant, without having any other classes in your classpath. Before running ant batch file you make sure, classpath environment variable contains no classes by typing set classpath= and press enter at command prompt, then you run ant.
before doing this make sure the JAVA_HOME environment variable points correctly to your current version of java home directory. ant batch file set all the required jar files into the classpath and then executes. mail me back if this works fine, still if you have problems, mail me what actually happening. Srinivas. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 12:01 AM To: [EMAIL PROTECTED] Subject: Fwd: trouble getting ant1.4.1 to work Hi: I'm new to the group. I am having trouble getting ant 1.4.1 working on my PC. Can someone help? I have downloaded the jakarta-ant-1.4.1 zip file and unzipped it into d:\ I have set: set ANT_HOME=d:\ant1.4.1 set JAVA_HOME=c:\jdk1.3.1_01 set path=%path%;%JAVA_HOME%\bin;%ANT_HOME%\bin (in my autoexec.bat) set classpath=%classpath%;%ANT_HOME%\lib\*.jar (in the current command shell) when I type: ant -version on the command line, I get: Exception in thread "main" java.lang.NoClassDefFoundError:org/apache/tools/ant/Main I am using Windoze 98 on an Athalon Thunderbird processor. The mystery is that, when I try this at work on Windows NT 4.0/Pentium III, I have no trouble. Any thoughts? Thanks. ----- End forwarded message ----- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>