dcsimg
problem with TokenBuffer class
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Claude_Devarenne
Posted On:   Friday, December 14, 2001 01:21 PM

Hi, I am new to all of this and I tried to build the Java HTML example and got the following error: Main.java:18: cannot access TokenBuffer bad class file: C:srcjavaantlr-2.7.antlrTokenBuffer.class class file contains wrong class: antlr.TokenBuffer Please remove or make sure it appears in the correct subdirectory of the classpath. TokenBuffer buffer = new TokenBuffer(lexer); ^ 1 error I tried also the HTML grammar posted under the resources page at antlr.org and got the same result. I built and ran other examples with no problem. Thank   More>>

Hi,


I am new to all of this and I tried to build the Java HTML example and got the
following error:


Main.java:18: cannot access TokenBuffer


bad class file:


C:srcjavaantlr-2.7.antlrTokenBuffer.class


class file contains wrong class: antlr.TokenBuffer


Please remove or make sure it appears in the correct subdirectory of the classpath.


TokenBuffer buffer = new TokenBuffer(lexer);
^
1 error


I tried also the HTML grammar posted under the resources page at antlr.org and got the same result.


I built and ran other examples with no problem.


Thank you in advance for your help.

   <<Less

Re: problem with TokenBuffer class

Posted By:   Claude_Devarenne  
Posted On:   Friday, December 14, 2001 04:27 PM

I temporarily fixed the problem by adding


import antlr.TokenBuffer;

import antlr.TokenStreamException;

import antlr.TokenStreamIOException;


This even though the file Main.java
already had


import antlr.*;


I am not entirely statisfied with this
solution so I'll try to track it down and figure out what is going on.

About | Sitemap | Contact