ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "h2ooo x" <>
Subject Classpath when executing JAR
Date Tue, 12 Oct 2004 06:25:08 GMT

I have the following Ant (1.6.2) tasks defined,

  <path id="runtime-classpath">
    <pathelement location="${dist}/myproject.jar"/>
    <pathelement location="${lib}/commons-logging-api.jar"/>
    <pathelement location="${lib}/commons-logging.jar"/>
    <pathelement location="${lib}/commons-httpclient-2.0.2.jar"/>

  <target name="run" depends="jar">
    <java classname="MyClass" classpathref="runtime-classpath" fork="true">

  <target name="run2" depends="jar">
    <java jar="${dist}/myproject.jar" classpathref="runtime-classpath" 

The task "run" is executed correct but the task "run2" produced the 
following error:

       [java] java.lang.NoClassDefFoundError: 
       [java] Exception in thread "main"
       [java] Java Result: 1

Do you have any idea what could be the problem?

Using a handphone prepaid card? Reload your credit online!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message