ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Matthews <>
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: 

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" 
if exist "%ANT_HOME%\lib\jaxp.jar" call "%ANT_HOME%\bin\lcp.bat" 
if exist "%ANT_HOME%\lib\parser.jar" call "%ANT_HOME%\bin\lcp.bat" 

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


View raw message