[antlr-interest] Running Antlr-3.0
Randall R Schulz
rschulz at sonic.net
Sun Dec 9 10:19:03 PST 2007
On Sunday 09 December 2007 09:13, Adam Cooney wrote:
> Hi all,
> I recently installed Antlr-3.0 only when I attempt to run a grammar
> it gives me an error:
>
> C:\antlr-3.0.1>java src.org.antlr.Tool Expr.g
> Exception in thread "main" java.lang.NoClassDefFoundError:
> src/org/antlr/Tool
In addition to getting your -classpath or CLASSPATH set propertly, you
should know that the entry-point class name argument (which you show
as "src.org.antlr.Tool") does not include "src.". The top-level package
in which the ANTLR code is found is "org."
(You may or may not know that the recommended package structure for Java
is to use the domain-wise reversal of the DNS domain name associated
with the publisher or author of the software. The intention is to
prevent inadvertent clashes between software originating in different
projects but used together elsewhere.)
> ...
>
> Adam
Randall Schulz
More information about the antlr-interest
mailing list