ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Vest <henry_v...@get2net.dk>
Subject Problems with javac
Date Mon, 11 Mar 2002 19:00:36 GMT
Hey!

I have a filestructure like this

/root_dir
 /build.xml
 /src/Test.java

build.xml contains:

<project name="test" default="compile" basedir=".">
  <property name="src" value="src"/>
  <property name="build" value="build"/>
  <property name="dist"  value="dist"/>
 <target name="init">
    <mkdir dir="${build}"/>
  </target>
  <target name="compile" depends="init">
    <javac srcdir="${src}" destdir="${build}"/>
  </target>
</project>

When i run ant, I get the following message:

BUILD FAILED
 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
        at 
org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java:527)
        at org.apache.tools.ant.taskdefs.Javac.doModernCompile(Javac.java:542)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:297)
        at org.apache.tools.ant.Target.execute(Target.java:132)
        at org.apache.tools.ant.Project.runTarget(Project.java:717)
        at org.apache.tools.ant.Project.executeTarget(Project.java:448)
        at org.apache.tools.ant.Project.executeTargets(Project.java:422)
        at org.apache.tools.ant.Main.runBuild(Main.java:279)
        at org.apache.tools.ant.Main.main(Main.java:107)

Anyone who can tell what's the problem - and how to solve it?

Thanks in advance.


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