ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anshuman Singh" <anshuman.si...@wipro.com>
Subject problem in running ant
Date Tue, 02 Jan 2001 15:58:06 GMT
hi,
i have looked into the available documentation but i am still  not able
to figure out the problem please help.

i downloaded ANT and unzipped it in my "C" drive and tried to run ANT
using what ever the default properties were provide. i am running ant on
a windows 98 machine.

i stripped down the build.xml file so now all that it contains is

<?xml version="1.0"?>

<!--
=======================================================================
-->
<!-- Ant own build
file                                                      -->
<!--
=======================================================================
-->

<project name="Ant" default="compile" basedir="..\">

  <!-- Give user a chance to override without editing this file
       (and without typing -D each time it compiles it) -->
  <property file="${user.home}/.ant.properties" />

  <property name="Name" value="Ant"/>
  <property name="name" value="ant"/>
  <property name="version" value="1.2"/>

  <property name="ant.home" value="."/>
  <property name="src.bin.dir" value="src/bin"/>
  <property name="src.etc.dir" value="src/etc"/>
  <property name="src.dir" value="src/main"/>
  <property name="src.tests.dir" value="src/testcases"/>
  <property name="docs.dir" value="docs"/>
  <property name="build.dir" value="../build/ant"/>
  <property name="lib.dir" value="${build.dir}/lib"/>
  <property name="bin.dir" value="${build.dir}/bin"/>
  <property name="build.classes" value="${build.dir}/classes"/>
  <property name="build.javadocs" value="${build.dir}/javadocs"/>
  <property name="build.tests" value="${build.dir}/testcases"/>
  <property name="ant.dist.dir" value="../dist/ant"/>

  <path id="classpath">
  </path>
  <property name="packages" value="org.apache.tools.*"/>
  <property name="manifest" value="src/etc/manifest"/>

  <property name="build.compiler" value="classic"/>
  <property name="build.compiler.emacs" value="on"/>

  <!--
=================================================================== -->
  <!-- Define a global set of patterns that can be referenced
by           -->
  <!-- its id
attribute                                                    -->
  <!--
=================================================================== -->
  <patternset id="chmod.patterns">
    <include name="**/ant" />
    <include name="**/antRun" />
    <include name="**/bootstrap.sh" />
  </patternset>

  <!--
=================================================================== -->
  <!-- Check to see what optional dependencies are
available               -->
  <!--
=================================================================== -->
  <target name="check_for_optional_packages">
    <available property="jdk1.2+" classname="java.lang.ThreadLocal" />
    <available property="jdk1.3+" classname="java.lang.StrictMath" />
    <available property="bsf.present" classname="com.ibm.bsf.BSFManager"
/>
    <available property="netrexx.present" classname="netrexx.lang.Rexx"
/>
    <available property="xslp.present"
               classname="com.kvisco.xsl.XSLProcessor" />
    <available property="xalan.present"
               classname="org.apache.xalan.xslt.XSLTProcessorFactory" />

    <available property="ejb.ejbc.present" classname="weblogic.ejbc" />
    <available property="ejb.DDCreator.present"
classname="weblogic.ejb.utils.DDCreator" />
    <available property="ejb.wls.present" classname="weblogic.Server" />

    <available property="junit.present"
classname="junit.framework.TestCase" />
    <available property="ftp.present"
classname="com.oroinc.net.ftp.FTPClient" />
    <available property="starteam.present"
classname="com.starbase.util.Platform" />
  </target>

  <!--
=================================================================== -->
  <!-- Prepares the build
directory                                        -->
  <!--
=================================================================== -->
  <target name="prepare">
    <mkdir dir="${build.dir}"/>

  </target>

  <!--
=================================================================== -->
  <!-- Compiles the source
code                                            -->
  <!--
=================================================================== -->
  <target name="compile" depends="prepare">
    <mkdir dir="${build.classes}"/>

    <javac srcdir="${src.dir}"
           destdir="${build.classes}"
           debug="on"
           deprecation="off"
           optimize="on" >
      <classpath refid="classpath" />

    </javac>

  </target>

</project>

while i am running ant with this build file i get

Build sequence for target `compile' is [prepare, compile]
Complete build sequence is [prepare, compile,
check_for_optional_packages]

BUILD FAILED

java.lang.NoClassDefFoundError

Total time: 0 seconds

please let me know where the problem could be ..

regards,
anshuman

Mime
View raw message