I'm using the pre compile script below (way below) and I get the following 
error from the CFcompiler. Can anybody shed some light on this?

Brook Davies


>C:\CFusionMX\lib>compile c:\inetpub\wwwroot\cfide\administrator\
>Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
>          at coldfusion.tools.Compiler.main(Unknown Source)
>'..\wwwroot\WEB-INF' is not recognized as an internal or external command,
>operable program or batch file.
>
>
>
>
>
>At 05:59 PM 15/08/02 -0400, you wrote:
> >The path to the java executable (java.exe) should be in your system's path
> >environment variable.  If your using the jvm that comes with CFMX it is
> >located here by default on windows: C:\CFusionMX\runtime\jre\bin
> >
> >The other option is to change your bat file so that it uses
> >
> >C:\CFusionMX\runtime\jre\bin\java instead of just java
> >
> >_____________________________________________
> >Pete Freitag
> >CTO, CFDEV.COM
> >http://www.cfdev.com/
> >
> >-----Original Message-----
> >From: Brook Davies [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, August 15, 2002 5:47 PM
> >To: CF-Talk
> >Subject: RE: precompiling templates
> >
> >
> >When I run the compile.bat file I get an error that 'java' is not a
> >recognized as an internal or external command. Do I need to install
> >something to have 'java' recognized by my system as an executable?
> >
> >Brook
> >
> >At 07:42 PM 12/08/02 -0400, you wrote:
> > >There is a -webinf argument you can pass to the Compiler to compile pages
> > >outside of the CFMX_INSTALL\wwwroot directory.  I have attached the latest
> > >version of the cfcompile script that demonstrates how to use this 
> argument.
> > >
> > >Instructions:
> > >1. Save the cfcompile.bat file attached below into the CFMX_INSTALL\bin
> > >directory
> > >2. Run cfcompile from the command-line according to the usage
> > >
> > >Usage: cfcompile [-f] -webroot webdir source [source ...]
> > >   -f                    force compilation
> > >   -webroot webdir       the doc root of the webserver
> > >   source                file or directory containing CFM templates
> > >
> > >Usage examples:
> > >Compiling all changed files under the IIS doc root:
> > >    c:\cfusionmx\bin\cfcompile.bat -webroot c:\Inetpub\wwwroot
> > > c:\Inetpub\wwwroot
> > >
> > >Recompiling all files under two subdirectory of the IIS doc root:
> > >    c:\cfusionmx\bin\cfcompile.bat -f -webroot c:\Inetpub\wwwroot
> > > c:\Inetpub\wwwroot\myapp c:\Inetpub\wwwroot\myapp2
> > >
> > >--------------start cfcompile.bat--------------------
> > >@echo off
> > >@setlocal
> > >if "%CFMX_INSTALL%"=="" set CFMX_INSTALL=..
> > >if not exist "%CFMX_INSTALL%\lib\cfusion.jar" goto err_cfdir
> > >if "%1"=="" goto usage
> > >if "%1"=="/?" goto usage
> > >goto compile
> > >
> > >:compile
> > >set PATH=%CFMX_INSTALL%\runtime\bin;%PATH%
> > >java -classpath %CFMX_INSTALL%\lib\cfusion.jar coldfusion.tools.Compiler
> > >-webinf %CFMX_INSTALL%\wwwroot\WEB-INF  %*
> > >goto end
> > >
> > >:err_cfdir
> > >echo Error: Could not locate %CFMX_INSTALL%\lib\cfusion.jar
> > >echo   Please set CFMX_INSTALL path (ex: set CFMX_INSTALL=c:\CFusionMX)
> > >goto end
> > >
> > >
> > >:usage
> > >echo usage: cfcompile [-f] -webroot webdir source [source ...]
> > >echo   -f                       force compilation
> > >echo   -webroot webdir          the doc root of the webserver
> > >echo   source                   file or directory containing CFM templates
> > >goto end
> > >
> > >:end
> > >@endlocal
> > >
> > >-------------end cfcompile.bat---------------------
> > >
> > >---
> > >Spike Washburn
> > >ColdFusion Development Team
> > >
> > >-----Original Message-----
> > >From: Critter [mailto:[EMAIL PROTECTED]]
> > >Sent: Tuesday, July 30, 2002 2:35 PM
> > >To: CF-Talk
> > >Subject: Re: precompiling templates
> > >
> > >
> > >oi Brook!!
> > >
> > >i believe that script only works in the cfmx root...
> > >
> > >
> > >--
> > >Critz
> > >  Macromedia Certified Advanced ColdFusion Developer  <CFX_BotMaster
> > > Network="Efnet" Channel="ColdFusion">
> > >
> > >
> >
> >
>
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to