Maybe a different question to ask is, how do I build and run ANTLR  
from source? I'm running "ant run-tests" and it seems to be failing  
miserably.

On Jan 16, 2009, at 13:37:21, Rick Mann wrote:

> Hi. I'm trying to follow the instructions for building a code
> generation target here:
>
> http://www.antlr.org/wiki/display/ANTLR3/How+to+build+an+ANTLR+code+generation+target
>
> Mostly to experiment with ANTLR from a different perspective, and
> maybe to do something useful. However, one step isn't very clear:
>
> "I recommend building the ANTLR tool 'in place'. Do not create a jar
> or compile/copy to a build directory. When you run it with 'java -cp
> path-to-src-dir ...' it will use the original *.stg file, which you'll
> edit a lot - so rebuilding the tool would be quite a PITA."
>
> I'm not really sure what that means. I built ANTLR with "ant build",
> and when I try running as the step suggests, well, I can't get the
> classpath right, and I'm not sure how that ties into the .stg files.
>
> $ java -cp build/classes:build/rtclasses/:lib/stringtemplate-3.2.jar
> org.antlr.Tool
> Exception in thread "main" java.lang.NoClassDefFoundError: antlr/
> TokenStream
>       at org.antlr.tool.ErrorManager.setLocale(Unknown Source)
>       at org.antlr.tool.ErrorManager.<clinit>(Unknown Source)
>       at org.antlr.Tool.main(Unknown Source)
>
> Would someone please clarify? Thanks!
>
>
> -- 
> Rick
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
Rick


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to