Am 14.05.2002 00:08:57, schrieb Claus Goettfert <[EMAIL PROTECTED]>: >ahm - well, I'm very sorry, but it still doesn't work. > >as well as with no CLASSPATH set (but antlr.jar, antlr-tools.jar and all >other required libraries under %JAVA_HOME%\jre\lib\ext) and with CLASSPATH >set to >%JAVA_HOME%\lib\antlr.jar;%JAVA_HOME%\lib\antlr-tools.jar;%JAVA_HOME%\lib \jakarta-ant-1.4.1-optional.jar
All JARs in ANT_HOME/lib are automatically on the classpath when you execute ant, so you shouldn't need to include the optional JAR in the CLASSPATH. Actually, with Ant 1.4.1 I've personally not had a problem with the ANTLR task. All I had to do was copy the antlr-tools.jar into ANT_HOME/lib, and it worked. Hmm, now that I think about it, that might be with the Ant 1.5 beta :P >I get the same message as I didn't have the optional package: > >"D:\jakarta\jakarta-slide-checkout\build.xml:653: Could not create task of >type: antlr. Common solutions are to use taskdef to declare your task, or, >if this is an optional task, to put the optional.jar in the lib directory >of your ant installation <ANT_HOME>." Yeah, that means the optional JAR isn't on the classpath. Having it in ANT_HOME/lib should suffice. [...] -chris _______________________________________________ /=/ cmlenz at gmx.de -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
