=?gb2312?q?=BB=D8=B8=B4=A3=BA=20RE:=20=C2=BB=C3=98=C2=B8=C2=B4=C2=A3=C2?=
=?gb2312?q?=BA=20RE:=20[antlr-interest]=20question=20about=20csharp=5Fv1=20?=
=?gb2312?q?example?=
=?gb2312?q?=CB=EF=BC=CD=B8=D5=20Jigang=20(Robert)=20Sun?=
sunjigang1965 at yahoo.com.cn
Thu Jul 27 08:28:42 PDT 2006
Hi Micheal,
I made the two changes as showed on attached file. The run screen is --
D:\antlr-2.7.6\examples\csharp\csharp_v1>nant
NAnt 0.85 (Build 0.85.2344.0; rc4; 2006-6-2)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///D:/antlr-2.7.6/examples/csharp/csharp_v1/csharp_v1.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: test
[tstamp] 2006Äê7ÔÂ27ÈÕ 16:21:30.
[echo] Building project: 'CSharp v1 Grammar Sample for ANTLR'
generate:
[exec] java.lang.NoClassDefFoundError: antlr/jar
[exec] Exception in thread "main"
BUILD FAILED - 0 non-fatal error(s), 2 warning(s)
D:\antlr-2.7.6\examples\csharp\csharp_v1\csharp_v1.build(52,10):
External Program Failed: java.exe (return code was 1)
Total time: 1.1 seconds.
It seems to be the same.
Thanks.
Jigang
--- Micheal J <open.zone at virgin.net>дµÀ:
> Robert,
>
> > Hi,
> > I downloaded NAnt, but I got error--
> >
> > D:\antlr-2.7.6\examples\csharp\csharp_v1>nant
> > NAnt 0.85 (Build 0.85.2344.0; rc4; 2006-6-2)
> > Copyright (C) 2001-2006 Gerry Shaw
> > http://nant.sourceforge.net
> >
> > Buildfile:
> > file:///D:/antlr-2.7.6/examples/csharp/csharp_v1/csharp_v1.build
> > Target framework: Microsoft .NET Framework 2.0
> > Target(s) specified: test
> >
> > [tstamp] 2006Äê7ÔÂ27ÈÕ 15:33:05.
> > [echo] Building project: 'CSharp v1 Grammar Sample for ANTLR'
> >
> > generate:
> >
> > [exec] java.lang.NoClassDefFoundError: antlr/Tool
> > [exec] Exception in thread "main"
>
> This says "I couldn't find the Tool.class file in D:\antlr-2.7.6\antlr"
>
> You should build antlr itself first.
>
>
> If you can't (or won't) build antlr, make the following changes to the *original*
> csharp_v1.build
>
> 1. Find this line:
> <property name="antlr.dir" value="..\..\.."/>
>
> Add the following below it:
> <property name="antlr.cp" value="..\..\..\antlr.jar"/>
>
>
> 2. Find this line:
> <target name="generate" description="calls ANTLR to generate Lexers/Parsers">
>
> Change all occurences of ${antlr.dir} IN THIS TARGET ONLY (i.e. between <target ..> and the
> closing </target>) to:
> ${antlr.cp}
>
> This changes basically say, "use the version of the antlr .class files found in antlr.jar".
> Consequently. any changes you've made to your local copy of the antlr tool's sources would not
> be reflected here obviously.
>
> > In csharp_v1.build, I also replaced "antlr.Tool" with
> > "antlr.jar antlr.Tool ", it ends the same.
>
> Don't do this ;-)
>
> Micheal
>
> -----------------------
> The best way to contact me is via the list/forum. My time is very limited.
>
>
___________________________________________________________
ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡
http://cn.mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: csharp_v1.build
Type: application/octet-stream
Size: 5819 bytes
Desc: pat454868658
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20060727/f0e31814/csharp_v1.obj
More information about the antlr-interest
mailing list