ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Jocham <rjocha...@yahoo.com>
Subject Ant and JavaCC
Date Thu, 15 Nov 2001 17:32:52 GMT
Hi,
I try to use Ant to compile my Java.jj grammar.
But I do get error messages.

The location of Javacc:
C:\JavaCC\javacc2.0

My ant buildfile:

<project name="JCSC" default="compile">
 
  <!--
===================================================================
-->
  <!-- precompile javacc grammar                     
-->
  <!--
===================================================================
-->
  <target name="precompile">
    <javacc
        target="rj/tools/jcsc/Java.jj"
	javacchome="c:/JavaCC/javacc2.0/"/>
  </target>

  <!--
===================================================================
-->
  <!-- compile all java source code from the source on
                    -->
  <!--
===================================================================
-->
  <target name="compile" depends="precompile">
    <javac srcdir="."
           destdir="."
           deprecation="on"
 	  
classpath="E:/jcsc;e:/gnu-regexp-1.1.4/lib/gnu-regexp-1.1.4.jar">
	   <include name="**/*.java"/>
	   <exclude name="**/test/*.java"/>
    </javac>
  </target>
</project>


And this is the error message:

Buildfile: build.xml

precompile:
   [javacc] java.lang.NoClassDefFoundError:
COM/sun/labs/javacc/Main
   [javacc] Exception in thread "main"

BUILD FAILED

E:\JCSC\build.xml:14: java failed with return code 1

Total time: 1 second

I am lost, any input is welcome,
Ralph


__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message