2 Replies Latest reply on Feb 22, 2006 8:34 AM by Scott Dawson

    Build error (2.2.1RC2)

    Jouni Rajala Newbie

      I downloaded and built the jboss 4.0.3SP1 first. It did go smoothly without any problems.

      Then I set the JBOSS_HOME envvar like it documentation. I can see in my command promt that JBOSS_HOME is pointing correct folder.

      C:\devel\jboss-portal-2.2.1RC2-src\build>set JBOSS_HOME
      JBOSS_HOME=C:\appservers\jboss
      
      C:\devel\jboss-portal-2.2.1RC2-src\build>


      I downloaded 2.2.1rc2 sources and go to build folder and try to start build but it fails miserably.

      C:\devel\jboss-portal-2.2.1RC2-src\build>build
      Executing C:\devel\jboss-portal-2.2.1RC2-src\build\..\tools\bin\ant.bat -logger org.apache.tools.ant.NoBannerLogger
      Exception in thread "main" java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_05\lib\tools/jar;C:\devel\jboss-portal-2/2/1RC2-src\build\//\tools\lib\
      xml-apis/jar;C:\devel\jboss-portal-2/2/1RC2-src\build\//\tools\lib\xercesImpl/jar;C:\devel\jboss-portal-2/2/1RC2-src\build\//\tools\lib\xalan/jar;C:\d
      evel\jboss-portal-2/2/1RC2-src\build\//\tools\lib\saxon/jar;C:\devel\jboss-portal-2/2/1RC2-src\build\//\tools\lib\optional/jar;C:\devel\jboss-portal-2
      /2/1RC2-src\build\//\tools\lib\junit/jar;C:\devel\jboss-portal-2/2/1RC2-src\build\//\tools\lib\explode/jar;C:\devel\jboss-portal-2/2/1RC2-src\build\//
      \tools\lib\crimson/jar;C:\devel\jboss-portal-2/2/1RC2-src\build\//\tools\lib\buildmagic-tasks/jar;C:\devel\jboss-portal-2/2/1RC2-src\build\//\tools\li
      b\bsf/jar;C:\devel\jboss-portal-2/2/1RC2-src\build\//\tools\lib\ant/jar;
      


      Ok. There must be something wrong here because my JAVA_HOME is:
      C:\devel\jboss-portal-2.2.1RC2-src\build>set JAVA_HOME
      JAVA_HOME=C:\Program Files\Java\jdk1.5.0_05
      
      C:\devel\jboss-portal-2.2.1RC2-src\build>
      


      and it tried to add "Files\Java\jdk1/5/0_05\lib\tools/jar" into classpath.

      I moved JAVA_HOME into c:\jdk1.5.0_05 and build seems to work. Evidently build.bat can't handle spaces in JAVA_HOME environment variable very well.

      Anyone else having this kind of problem. After all, that is default installation location for jdk and it should work fine with little tweak to build.bat.


        • 1. Re: Build error (2.2.1RC2)
          noicangi Novice

          the same happened to me, i used to have java home at c:/program files/java

          then i copied to c:/java ,but it didn't function (strange thing, but the cvs builded ok.

          what i was trying to do was clustering ( clustering topic)

          • 2. Re: Build error (2.2.1RC2)
            Scott Dawson Apprentice

            To fix the JAVA_HOME problem on Windows without moving the JDK, specify the environment variable like this:

            C:\Progra~1\Java\jdk1.5.0_06

            with "Progra~1" instead of "Program Files". Then the build should work with the JDK in the default location.

            Build problems also occur when the source code is in a directory with spaces in the directory names, for example,
            under "Documents and Settings" where Eclipse projects are located by default.

            Regards,
            Scott Dawson
            Unisys