I'd unjar the stuff:

$ jar cf antlr-3.1.3.jar

and it will dump the contents.  You need the org dir in your  
CLASSPATH. Then put your XYZ.stg all the way down with the other  
templates :)
Ter
On Apr 12, 2009, at 6:24 PM, John Lynn wrote:

> Sorry for my java newbness; I appreciate the help. I got the verbose
> output, but I'm not so sure it helps.
>
> A couple more questions:
>
> - Is there a working directory where I should be running this from?
>
> - Is there a non-jar way to run this that might work better?
>
> thanks...
>
> On 4/11/09, Terence Parr <[email protected]> wrote:
>>
>> On Apr 11, 2009, at 11:55 AM, John Lynn wrote:
>>
>>> Sorry, I didn't quote the correct directory - it is indeed  
>>> actually in
>>> " src\org\antlr\codegen\templates\XZY", and still I get the error:
>>>
>>>>> error(10):  internal error: no such group file XYZ.stg
>>>>> error(20):  cannot find code generation templates XYZ.stg
>>>
>>> I tried looking at the source to see if that would help, but I was
>>> unable to glean any clues.
>>
>> try -verbose option on java to see where it's loading files.  If
>> you're using the antlr jar it won't look in file system for anything
>> (jar's semantics).
>>
>> Ter
>>

_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to