1 Reply Latest reply on Nov 29, 2006 7:28 PM by Dustin Norlander

    seam setup fails with java.lang.NoClassDefFoundError

    Dustin Norlander Apprentice

      I got everything set up until I tried to run

      $ ./seam setup

      from within the seam dir.

      I get
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
      


      I have looked at the seam script and it looks very straight forward. I have not moved anything any of the ant jars in the lib directory and I have even tried the following on the command line with the same result:

      $ java -cp "/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/lib/tools.jar:../lib/ant-nodeps.jar:../lib/ant-launcher.jar:../lib/ant.jar" -Dant.home=../lib org.apache.tools.ant.launch.Launcher
      


      running the newest ubuntu linux.

      Any help is appreciated.

      -Dustin

        • 1. Re: seam setup fails with java.lang.NoClassDefFoundError
          Dustin Norlander Apprentice

          Ok, I got it to work by changing the seam script to the following:

          #/bin/sh
          ############################################
          #
          # seam-gen
          #
          ############################################
          
          cd seam-gen
          if [ "${1}" = "" ]
          then
           cat USAGE
          elif [ "${1}" = help ]
          then
           cat README
          else
           java -cp "/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/lib/tools.jar:../lib/ant-nodeps.jar:../lib/ant-launcher.jar:../lib/ant.jar" -Dant.home=../lib org.apache.tools.ant.launch.Launcher ${1} ${2} ${3} ${4} ${5} ${6} ${7}
          fi
          cd ..
          



          It seemed to be executing the cgywin path (not sure why).