I had the same problem on WinNT.  Since your CLASSPATH variable contains quoted
strings, the quotes added in the batch file cause it to fail.

To resolve, I edited the run.bat file to remove the quotes that are around
%CLASSPATH%:

     java %JAXP% -classpath %CLASSPATH% org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8
%9





Tobias Frech <[EMAIL PROTECTED]> on 04/16/2001 12:02:29 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: [JBoss-user] Source Code Building



Hi!
Looks like there are some quotes too much in the CLASSPATH which is
generated ! I can't test with Windows here, sorry. Perhaps patching that
quote=" line helps.

Cheers,
Tobias

Faisy A wrote:
>
> Hello,
>
> Can anyone please help me about how to build jboss from source code. I
> thought just running the build.bat file in the jboss\src\build directory
> would do the job, but running the build.bat gives me a NoClassDefFoundError
> for the Ant Main class, even though the ant_1.3.jar is present in the
> jboss\lib directory and the build.bat mentions it being included in the
> classpath. I would appreciate it if someone can help me to get started.
>
> Thanks
>
> Below is the error I am getting when I run build.bat
>
> CLASSPATH=
>
;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\lib\ant-1.3.jar;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\lib\awt.jar;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\

>
lib\codegen.jar;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\lib\crimson.jar;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\lib\javac.jar;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\lib\jaxp.jar;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\lib\jmxri.jar;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\lib\xml.jar;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\lib\xmlbeans.jar;"D:\AppServer\JBossSourceCode\jboss\src\build"\..\..\build\classes

> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tools/ant/Main
>
> ______________________________________________
> FREE Personalized Email at Mail.com
> Sign up at http://www.mail.com/?sr=signup
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user







_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to