Skip to main content
Jay999999999999999
Known Participant
April 10, 2013
Question

CF 10 - cfcompile.bat

  • April 10, 2013
  • 4 replies
  • 1238 views

I'm setting up CF10 SP 9 on a copy of the existing web site on a development server etc.

I ran cfcompile.bat against the web site and the compile took 107 sec  and there was somthing like 14000 files compiled -- but I can't seem to find the .class files that (I think) were supposed to be created. 

What am I missing?

jay

This topic has been closed for replies.

4 replies

Charlie Arehart
Community Expert
Community Expert
April 13, 2013

Jay, as the purpose of the precompile utility is (by default) to simply precompile them the same way that CF would, running the tool puts the resulting .class files in the same place they would go when CF compiles them itself during normal page execution (assuming you have “save class files” enabled in the CF Admin Caching page). I realize you may just not know that location (and it’s not mentioned on the cf docs page for the cfcompile tool).

In CF10, that location would be \cfusion\wwwroot\WEB-INF\cfclasses (where 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.)

Let us know if that helps.

/charlie

/Charlie (troubleshooter, carehart. org)
Jay999999999999999
Known Participant
April 15, 2013

Charlie:  Thanks for the information and filling in the missing details in the documentation!

I did have a few files that were " Access denied"  I'm guessing that they were open when the compile was run?

Jay

Charlie Arehart
Community Expert
Community Expert
April 15, 2013

Great to hear if it helped. As for your new question, well, I wouldn’t suspect that, no. Maybe instead you, the user running the cfcompile, don’t have permissions to the files? It’s not CF (the service) running the compiles in this case, but you running the Java library that does that, so it’s run under your own authority, not CF’s.

Let us know if that helps.

/charlie

/Charlie (troubleshooter, carehart. org)