Execution of bytecode error on ACF 2021/2023

when I try to start ACF 2021.0.20 or 2023.0.14 using command box and then attempt to access the CF Admin, I get : “ColdFusion, by default, disables the execution of bytecode in .cfm and .cfc files . To enable it, open the jvm.config file, and set -Dcoldfusion.compiler.block.bytecode=false or add path:… to pathfilter.txt” I read the Adobe updates about this change and it says I can add to the pathfilter.txt or pathfilter.json the location of the files, but when I do that, I still get the error, so clearly something else is going on.

I could not find the jvm.config file to add the java flag to within the commandbox server folder paths.

Any help is appreciated.

Try running this:

server set jvm.properties[coldfusion.compiler.block.bytecode]=false

CommandBox stores JVM-related config in the server.json, which that command will modify.

Thanks Brad - that got it. How hard would it be to add that as part of the commandbox logic, or at least the wiki when trying to run an ACF server?

Well, since it’s a security setting, we wouldn’t want to do that automatically. Users need to opt into that, of course. I think it’s ridiculous that Adobe changed this setting given the fact that the admin is pre-compiled, but I can’t speak to why they made that decision.

Adobe has a number of system properties they support, but it’s not really CommandBox’s job to document them. We document how to set system properties and JVM args here so users know how to set whichever ones they need: