ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From F Da Costa Gomez <>
Subject NoClassDefFoundError for class that is on the classpath?
Date Thu, 31 Mar 2005 12:52:42 GMT

Following the error i get when trying to run a script (from Eclipse 3.0.2)

      [java] java.lang.NoClassDefFoundError: org/jmlspecs/jmlunit/Main
      [java] Exception in thread "main"

The class is actually *on* the classpath because the following line in echo-ed:

Actually it can be found in the release.jar

The code used to set the classpath is as follows
<!-- Set the classpath for the project, include the JML spec-files as well -->
<path id="classpath">
  <pathelement path="${java.class.path}" />
  <fileset dir="${jmlhome}/bin">
   <include name="**/*.jar"/>
  <fileset dir="${test.dir}">
   <include name="jmlfiles.jar"/>
<pathconvert property="cp" refid="classpath" dirsep="/" pathsep=";"/>

Could anybody point a the right direction to resolve this?


Fermin DCG

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

View raw message