ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NancyL <>
Subject RE: Problems with ANTLR
Date Wed, 09 Jun 2010 20:40:22 GMT

1) I downloaded the today from the antlr home page.
2) In the zip is a jar called antlr3_task.jar
3) I copied antlr3_task.jar to my eclipse ant plugin lib directory,
4) I put this in my build.xml:
		<antlr:antlr3 xmlns:antlr="antlib:org/apache/tools/ant/antlr"
				<classpath refid="compile.classpath"/>

4) When I build I get:
C:\workspace\ess-networking\build.xml:41: Problem: failed to create task or
type antlib:org/apache/tools/ant/antlr:antlr3
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of:
        -C:\Documents and Settings\nlaparo\.ant\lib
        -a directory added on the command line with the -lib argument

# wrote:
> Hi,
> the ant-lib for the antlr3 task can be downloaded from here: 
> A short description of it's usage is enclosed in the zip-archive
> (antlr3-task.htm or antlr3-task.doc).
> Try the examples contained in the zip-archive. There is also an example on
> how to use the antlr3 task for ant in netbeans.
> If you still have questions, I will try to answer them.
> Kind regards, J├╝rgen

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message