ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kumar, Senthil" <Senthil.Ku...@wfg.com>
Subject build failed...?
Date Wed, 18 Oct 2000 21:13:03 GMT
Hi,
   Have u experienced this error. I can figure out what is the error...
help me if u know the cause of this error...
 
C:\CLAW\com\citadel\claw>ant
Buildfile: build.xml

init:

prepare:

compile:
    [javac] Compiling 20 source files to C:\claw\build

BUILD FAILED

java.lang.NoClassDefFoundError: sun/tools/javac/Main
        at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Compiled
Code)
        at org.apache.tools.ant.taskdefs.Javac.execute(Compiled Code)
        at org.apache.tools.ant.Target.execute(Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:717)
        at org.apache.tools.ant.Project.executeTarget(Compiled Code)
        at org.apache.tools.ant.Project.executeTargets(Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:107)

Total time: 2 seconds

Senthil.


Build.xml
************

<project name="claw" default="dist" basedir=".">
  <target name="init">
    <tstamp/>
    <property name="build" value="c:/claw/build" />
    <property name="dist"  value="c:/claw/dist" />
    <property name="src" value="." />
    <filter token="version" value="1.0.3" />
    <filter token="year" value="2000" />
  </target>

  <target name="prepare" depends="init">
    <mkdir dir="${build}" />
  </target>

  <target name="compile" depends="prepare">
    <javac srcdir="${src}" destdir="${build}" filtering="on"/>
  </target>

  <target name="dist" depends="compile">
    <mkdir dir="${dist}/lib" />
    <jar jarfile="${dist}/lib/claw.jar"
     basedir="${build}" includes="com"/>
  </target>

  <target name="clean" depends="init">
    <deltree dir="${build}" />
    <deltree dir="${dist}" />
  </target>
</project>

***************

Mime
View raw message