Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-88

Examples build.xml fails to set proper runtime.classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1
    • 1.1
    • examples
    • None
    • Windows XP, JDK 1.5, Ant 1.6.2, command line execution

    Description

      After running 'ant' and/or 'ant install' at the top level with all dependencies resolved, all needed libraries are built. Changing directory into the 'examples' subdirectory and running 'ant run-calculator' produces a NoClassDefFoundError for org/apache/hivemind/ClassResolver.

      Mofidying the runtime.classpath fixes the problem. Following is the patch output:

      Index: build.xml
      ===================================================================
      RCS file: /home/cvspublic/jakarta-hivemind/examples/build.xml,v
      retrieving revision 1.11
      diff -u -r1.11 build.xml
      — build.xml 16 Nov 2004 18:51:43 -0000 1.11
      +++ build.xml 1 Feb 2005 05:21:06 -0000
      @@ -35,8 +35,8 @@

      <path id="runtime.classpath">
      <fileset dir="${module.lib.dir}">

      • <include name="compile/*.jar"/>
      • <include name="run/*.jar"/>
        + <include name="compile/*/.jar"/>
        + <include name="run/*/.jar"/>
        </fileset>
        <pathelement location="${java.classes.dir}"/>
        <pathelement location="${conf.src.dir}"/>

      Attachments

        1. hivemind-examples-build.xml.patch.txt
          0.6 kB
          Brian K. Wallace

        Activity

          People

            knut Knut Wannheden
            vaporrun Brian K. Wallace
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: