ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Quirk" <brian.qu...@ams.com>
Subject java.lang.NoClassDefFoundError: sun/tools/javac/Main Error
Date Sat, 28 Dec 2002 00:34:38 GMT
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>


Mime
View raw message