Skip to main content
This topic has been closed for replies.

2 replies

Charlie Arehart
Community Expert
Community Expert
April 13, 2013

The doc page here about the precompile utility does not clarify where it puts the compiled class files, so I'll add a little more info for readers here.

As the cfcompile tool's purpose is (by default) to simply precompile CFML templates the same way that CF would, running the tool puts the resulting .class files in the same place that CF would put them when it compiled them itself during normal page execution (assuming you have “save class files” enabled in the CF Admin>Caching page).

In CF10, that location would be [coldfusion10]\[instance]\wwwroot\WEB-INF\cfclasses (where [instance] is cfusion if you have not created multiple instances).

If anyone would wonder, no, it does not matter whether you have “save class files” enabled in the CF Admin when you try to use the cfcompile tool. It will save files to that cfclasses directory, regardless.

(Also, note that if you had used the -deploy argument for the cfcompile tool, then that WOULD let you name a destination directory for the resulting files. This form of the tool is intended for you to create files that you would take and put on some other server, and they would be sourceless CFM files, not class files.)

/Charlie (troubleshooter, carehart. org)
Participant
June 5, 2012

I tried to use the cfcompile utility (cfcompile.bat) of ColdFusion 10.

But the file did not exist in "cf_root/bin (cf_root/cfusion/bin)".

Is it included in the ColdFusion 10?

itisdesign_-_AH
Inspiring
October 21, 2012

@shigemii, the missing cfcompile utility issue was fixed in ColdFusion 10 Update 1: http://helpx.adobe.com/coldfusion/kb/coldfusion10-update-01.html

Thanks,

-Aaron