Skip to main content
Participating Frequently
August 5, 2010
Question

CFCOMPILE and CF version compatibility

  • August 5, 2010
  • 1 reply
  • 2075 views

Hello All

I have a question regarding CFCOMPILE and ColdFusion version compatibility. We would like to distribute our software sourceless and have tried to use the CFCOMPILE command line utility.  We used the "deploy" option.  We did this is ColdFusion 8.0.1 Developer.  It seems the compiled code works just fine for most other 8.0.1 systems, but seems to die on a CF 9 system and even some other versions of CF8 depending on the JRE version. 

My question is: Is there a way to compile source code that is backward compatible so I do not have to force my users to use a certain version/build of CF? If I compiled the software in version 9, will it work with all previous versions??  I tried to search the net, but there isn't much info I can find on this topic.  Any help would be greatly appreciated.

Thanks!

    This topic has been closed for replies.

    1 reply

    Inspiring
    August 5, 2010

    As far as my understanding goes (which is not very far, and I've not touched this stuff for a few years), the JRE version is as significant as the CF version. Trying to run code compiled with a later version of the JRE won't work on an earlier version of the JRE (even between small point releases). However going the other way should work OK. compile it on the lowest revision of the JRE that your version of CF supports, and it should work on later versions...

    --

    Adam

    Inspiring
    August 6, 2010

    Out of curiosity, what kind of errors are you receiving when running the compiled code on CF9?