ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Matthews <sc...@rocsoftware.com>
Subject Ant.bat on Windows98
Date Mon, 20 Aug 2001 14:20:28 GMT
I am new to the ANT utility.  I am using Windows 98.

Initially I had trouble getting the ANT utility to work correctly.  After 
installation, the first thing I tried was:
"ant -version" and got the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tools/ant/Main

It turns out that in the "ant.bat" file, there is a batch command:
for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" "%%i"
    that did not work correctly.
I had to REM out this line and add the following 3 lines below the REM 
statement to make it work:
if exist "%ANT_HOME%\lib\ant.jar" call "%ANT_HOME%\bin\lcp.bat" 
"%ANT_HOME%\lib\ant.jar"
if exist "%ANT_HOME%\lib\jaxp.jar" call "%ANT_HOME%\bin\lcp.bat" 
"%ANT_HOME%\lib\jaxp.jar"
if exist "%ANT_HOME%\lib\parser.jar" call "%ANT_HOME%\bin\lcp.bat" 
"%ANT_HOME%\lib\parser.jar"

Question:
Did I set something up incorrectly or does Windows98 have a problem with 
the "for" batch command?

Thanks.


Mime
View raw message