Martin,

I'll attach a message I wrote not too long ago that dealt with this:

===

Yeah, the process is way broken.  IIRC, these were some of the issues I dealt with:

* had to launch the build process from a DOS window that had environment memory set to 
4096K (as you already noted)

* some of the batch files were written on UNIX, and therefore use line-feeds as line 
terminators, instead of the DOS standard carriage-return/line-feed combo.  DOS ignores 
LF's in batch files (sees them as whitespace), and therefore tried to process several 
lines of batch file as one single line.  So I had to take the bin\ant.bat file and 
convert it CR/LF's using my editor.

* The whole point of all the batch files is to finally build a "java" command to kick 
off ant.  But even after all the stuff above it still didn't generate the right 
start-up command - put lots of extra space in the classpath.  I wound up debugging the 
batch file, echoing out what it was trying to build, then taking it, fixing it by 
hand, and putting into a batch file of my own (email me if you need it and I'll send 
it to you).  Once I finally ran that batch file, the WAR was generated fine and 
everything went smoothly.


Hope this helps.  Email if not.


DR





At 04:55 PM 11/9/01 +0000, you wrote:
>Folks
>
>I cant even get Cocoon built.
>I have tried versions 2.0rc2 and 2.0rc1a and followed the instructions in the 
>'install' file.
>
>I am using JDK1.3.1 and Tomcat 4.0.1, which work OK.
>
>I am currently trying to build 2.0rc1a, which is installed in 'd:\cocoon'
>
>The build command I am using is
>.\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%CATALINA_HOME%\webapps webapp
>
>which produces a simple 'bad command or filename'
>
>Turning echo back on in build.bat and ant.bat, the above command basically outputs 
>the contents of ant.bat to the screen (up to about the line :- if not exist 
>"%SystemDrive%\Program Files\ant" goto checkSystemDrive)
>
>Typing ant.bat in DOS produces a badly formatted file so I saved ant.bat in Word as 
>ant.txt and renamed to ant.bat.
>This allowed the thing to run now.
>
>Until the error
>Exception in thread "main" java.lang.NoClassDefFoundError:
>
>I'm really totally lost here. Same error in both 2.0rc1a and 2.0rc2
>
>Anyone help?
>ta
>Martin
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]> 


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to