I'm glad you brought this up. I had the same problem and it's nice that you
got it to work. I was also planning on asking this list how to make it print
line by line instead of jumbled together. Anyone know how to do that?

-----Original Message-----
From: John Paul Ashenfelter [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 3:12 PM
To: CF-Talk
Subject: fixing precompile.bat for CFMX 6.1 --
java.lang.NoClassDefFoundError for javax/servlet


Folks,

I've always used the precompile.bat file from Charlie Aerheart's blog as
part of the nightly build/release tool for our CFMX development and
integration sites, but the version I'm running dies with a
java.lang.NoClassDefFoundError for javax.servlet.* classes. Easy enough to
find the library -- javax.servlet.* is in the \runtime\lib\jrun.jar file.
Maybe other places as well...

So the batch file I now have working looks like this:

REM precompile.bat for CFMX 6.1 Windows
set MX_INSTALL=c:\CFusionMX
set PATH=%MX_INSTALL%\runtime\bin;%MX_INSTALL%\runtime\jre\bin;%PATH%
java -classpath
%MX_INSTALL%\lib\cfusion.jar;%MX_INSTALL%\runtime\lib\jrun.jar;
coldfusion.tools.Compiler -webroot %1 -webinf %MX_INSTALL%\wwwroot\WEB-INF
%1

LINUX NOTE: I'm guessing on linux you'd need to use -classpath
%MX_INSTALL%\lib\cfusion.jar:%MX_INSTALL%\runtime\lib\jrun.jar instead to be
consistent with classpath on that platform, at least the way I remember it.
Not near a linux box to check today.

And it can be used like this:

precompile c:\cfusionmx\wwwroot

One difference though is that there is no compile time for each page, or
linebreak after each page. And I could have done this wrong :) Any other
folks have input/comments?

Regards,

John Paul Ashenfelter
CTO/Transitionpoint


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to