DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18935>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18935 Remove quotes Summary: Remove quotes Product: Ant Version: 1.5.1 Platform: PC OS/Version: Windows XP Status: NEW Severity: Major Priority: Other Component: Wrapper scripts AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Running ant.bat as is returns a ClassDefFoundError. It seems to get confused with the quotes placed around some jar files included in the classpath, specifically catalina-ant and tools (actually, even classes.zip). I was able to fix it by changing the lines that add them to the LOCALCLASSPATH to: call "%ANT_HOME%\bin\lcp.bat" %ANT_HOME%\..\server\lib\catalina-ant.jar if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME% \lib\tools.jar if exist "%JAVA_HOME%\lib\classes.zip" call "%ANT_HOME%\bin\lcp.bat" % JAVA_HOME%\lib\classes.zip Also, there was something weird going on with these lines: "%_JAVACMD%" -classpath "%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" "- Djwsdp.home=%ANT_HOME%\.." %ANT_OPTS% org.apache.tools.ant.Main % ANT_CMD_LINE_ARGS% "%_JAVACMD%" -classpath "%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" "- Djwsdp.home=%ANT_HOME%\.." -Djikes.class.path="%JIKESPATH%" %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS% The quotes were before the '-Dant' and 'Djwdsp'. They should be: "%_JAVACMD%" -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" - Djwsdp.home="%ANT_HOME%\.." %ANT_OPTS% org.apache.tools.ant.Main % ANT_CMD_LINE_ARGS% "%_JAVACMD%" -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" - Djwsdp.home="%ANT_HOME%\.." -Djikes.class.path="%JIKESPATH%" %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS% Maybe I'm wrong, but it worked.