ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Problem with <antlr> task
Date Wed, 31 Jan 2001 15:20:32 GMT
NIkhil R. Deshpande <nikhild@flashmail.com> wrote:

> Hi,
> 
> When I put antlr.jar in %ANT_HOME%\lib directory and run
> ant, I get following exception:
> 
>     java.lang.NoClassDefFoundError: antlr/Tool
> 

but not if you use fork="no", right?

> But if I put antlr.jar in CLASSPATH before running ant, then
> everything works ok.

When forking of a separate VM, <antlr> doesn't specify a classpath at
all, thus using the setting for CLASSPATH from your environment which
is not altered by ant.bat.

Thanks

        Stefan

Mime
View raw message