[antlr-interest] Re: ASTFrame

Terence Parr parrt at cs.usfca.edu
Wed Mar 24 08:26:15 PST 2004


On Mar 24, 2004, at 5:01 AM, David wrote:

> Yes the problem was coming from the fast that this class wasn't in the
> archive (even by using the makefile automaticaly generated with
> autoconf). This was due to the presence of a $ within the name of the
> class. I solve this problem by adding manualy the class to the archive
>  using the following command :
>
>  jar uf antlr.jar
> 'antlr/debug/misc/ASTFrame$MyTreeSelectionListener.class'

Wow...that's weird.  I did a *.class everywhere.  Did the jar command  
not find anything with $ in it?  If so, I've got a problem with  
antlr.jar ;)

Ter

>
> jar uf antlr.jar 'antlr/debug/misc/ASTFrame$1.class'
>
> David.
>
>
> --- In antlr-interest at yahoogroups.com, Ric Klaren <klaren at c...> wrote:
>> On Mon, Mar 22, 2004 at 06:26:46PM -0000, David wrote:
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> antlr/debug/misc/ASTFrame$MyTreeSelectionListener
>>>         at antlr.debug.misc.ASTFrame.<init>(ASTFrame.java:42)
>>>         at Main.main(Main.java:17)
>>>
>>> For information I'm using the last version of antlr available on the
>>> web which is antlr-2.7.3rc3.
>>
>> FYI 2.7.3 is out since a few days.
>>
>> On Wed, Mar 24, 2004 at 08:01:55AM -0000, David wrote:
>>> Thank you, I tried both your advice but it is still not working. My
>>> CLASSPATH is set to :
>>>
> CLASSPATH=.:/home/ddefour/tmp/antlr/cgram/examples:/home/ddefour/tmp/ 
> antlr/cgram/grammars:/usr/share/java/antlr.jar:/usr/share/java:/usr/ 
> local/java/j2sdk1.4.1_05/lib
>>>
>>> The fact that there is a '$' sign within the name of the classe
>>> (ASTFrame$MyTreeSelectionListener) seem very surprising for me. Is it
>>> not the source of the problem ? because in Linux shell this sign is
>>> very specific.
>>
>> The '$' get generated by compiling certain java classes (was it with
> inner
>> classes or something) anyway it's normal for java. I could suspect  
>> that
>> this file might be missing from the antlr.jar. You can check with:
>>
>> jar tvf antlr.jar
>>
>> If it's missing you can try following the build instructions to
> build the
>> jar file anew. On unix the configure+make recipe should work as well.
>>
>> Cheers,
>>
>> Ric
>> -- 
>>
> ----- 
> +++++*****************************************************+++++++++---- 
> ---
>>     ---- Ric Klaren ----- j.klaren at u... ----- +31 53 4893722  ----
>>
> ----- 
> +++++*****************************************************+++++++++---- 
> ---
>>  Time what is time - I wish I knew how to tell You why - It hurts to
> know -
>>           Aren't we machines - Time what is time - Unlock the door
>>                - And see the truth - Then time is time again
>>                 From: 'Time what is Time' by Blind Guardian
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list