ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Salgado <salgado...@04web.com>
Subject java task NoClassDefFoundError
Date Fri, 16 Jan 2004 18:32:49 GMT

  (I have already checked the manuals and verbose to see what is happening).

  I am trying to execute a java task on the bin (${dir.build}) directory,
where my Junit test classes are and I get the following error:

 [java] 'com.pg.portonline.junit.actions.LoginTest'
     [java] 
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
com/pg/portonline/junit/actions/LoginTest

BUILD FAILED
file:/Users/pedro/Projects/PG/PortOnline/webapp/build.xml:237: Java
returned: 1
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:110)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

  Help needed?


  The ant task:
        <java
            classname="com.pg.portonline.junit.actions.LoginTest"
            fork="true"
            dir="${dir.build}"
            failonerror="true"
            maxmemory="128m"
            >
            <classpath>

                <fileset dir="${dir.lib}">
                    <include name="**/*.jar"/>
                </fileset>

                <fileset dir="${dir.metadata}">
                    <include name="**/struts-*.xml"/>
                </fileset>

            </classpath>
        </java>

  Regards,

Pedro Salgado


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message