ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry Smith" <>
Subject Weird NoClassDefFoundError
Date Wed, 05 Feb 2003 19:23:24 GMT
Using Ant 1.5.1, Sun JDK 1.4.1_01 with this script:

    <path id="classpath">
        <fileset dir="lib">
            <include name="**/*.jar"/>        

    <target name="build-resources">
        <java   classname="test.MyClass>
                <path refid="classpath"/>

I get this error:
java.lang.NoClassDefFoundError: org/w3c/dom/Element

It runs from the command line fine with java -cp lib\myjar.jar test.MyClass
Obviously my class does import/use org.w3c.dom.Element

Any ideas on what is happening here?


View raw message