ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@isrmail.isr.umd.edu
Subject Re: java.lang.NoClassDefFoundError: sun/tools/javac/Main Error
Date Sat, 28 Dec 2002 17:14:08 GMT

Looks like that you do not have tools.jar in the 
${compile.classpath}. include that in the classpath and that 
should work.

Vikas


---- Original message ----
>Date: Fri, 27 Dec 2002 19:34:38 -0500
>From: "Brian Quirk" <brian.quirk@ams.com>  
>Subject: java.lang.NoClassDefFoundError: 
sun/tools/javac/Main Error  
>To: ant-user@jakarta.apache.org
>
>Hi -
>
>Ant compiles beautifully when I use JDK 1.3.0_02. However, 
I'm trying to
>use a different compiler and receive the following error:
>
>****************************
>compile:
>[javac] Since fork is true, ignoring compiler setting.
>[javac] Compiling 705 source files to 
c:\ant_test\build\classes
>[javac] Since fork is true, ignoring compiler setting.
>[javac] java.lang.NoClassDefFoundError: sun/tools/javac/Main
>[javac] Exception in thread "main"
>
>BUILD FAILED
>*****************************
>
>Here is my build file snippet:
>
><target name="compile" depends="init" description="Compile 
the source
>code">
>      <!-- Compile the java code from ${src.dir} into 
${build.dir} -->
>      <javac srcdir="${src.dir}"
>             destdir="${build.dir}"
>             fork="yes"
>             executable="c:/silverstream37/jre/bin/javac"
>             compiler="javac1.2">
>             <classpath refid="compile.classpath"/>
>      </javac>
></target>
>
>I believe this is related to tools.jar, but aren't sure how 
to get around
>the issue. Any advice is very appreciated.
>
>Thanks,
>Brian
>
>- ps - I hope I haven't done something too stupid - I am 
very new to ANT.
>
>
>
>
>
>.
>
>--
>To unsubscribe, e-mail:   <mailto:ant-user-
unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:ant-user-
help@jakarta.apache.org>
>

--
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