Мне нужно построить пример CSHARP V1, который поставляется с ANTLR v 2.7.7.
Команда:
D: \ Comp \ ANTLR \ Примеры \ CSharp \ csharp_v1> Nant
Я получаю следующий вывод:
</p>
<p>D:\Comp\antlr\examples\csharp\csharp_v1>D:\Comp\nant\bin\nant
NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
<a href="http://nant.sourceforge.net" rel="nofollow noreferrer">http://nant.sourceforge.net</a></p>
<p>Buildfile: file:///D:/Comp/antlr/examples/csharp/csharp_v1/csharp_v1.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: test</p>
<p>[tstamp] Monday, May 11, 2009 11:21:20 PM.
[echo] Building project: 'CSharp v1 Grammar Sample for ANTLR' generate:
[exec] java.lang.NoClassDefFoundError: antlr/Tool
[exec] Caused by: java.lang.ClassNotFoundException: antlr.Tool
[exec] at java.net.URLClassLoader$1.run(Unknown Source)
[exec] at java.security.AccessController.doPrivileged(Native Method)
[exec] at java.net.URLClassLoader.findClass(Unknown Source)
[exec] at java.lang.ClassLoader.loadClass(Unknown Source)
[exec] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[exec] at java.lang.ClassLoader.loadClass(Unknown Source)
[exec] at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[exec] Could not find the main class: antlr.Tool. Program will exit.
[exec] Exception in thread "main"</p>
<p>BUILD FAILED - 0 non-fatal error(s), 11 warning(s)</p>
<p>D:\Comp\antlr\examples\csharp\csharp_v1\csharp_v1.build(52,10):
External Program Failed: java.exe (return code was 1)</p>
<p>Total time: 0.2 seconds.</p>
<p>
У меня NANT работает нормально для других сборок.
Я не Java-парень ... любая помощь будет полезна.
С уважением,