Skip navigation
mjsale
Currently Being Moderated

CFCOMPILE and CF version compatibility

Aug 5, 2010 8:18 AM

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!

 
Replies
  • Currently Being Moderated
    Aug 5, 2010 11:10 AM   in reply to mjsale

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2010 1:27 PM   in reply to Adam Cameron.

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

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 23, 2013 5:58 PM   in reply to Adam Cameron.

    Hi, Can you tell me if there will be a code incompatibility if the development environment uses the CFCOMPILE utility has coldfusion 10,  64 bit Windows 7 and the deployed environment of the files has coldfusion 10, 32 bit Windows 7?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 26, 2013 12:26 AM   in reply to Francine...

    Francine... wrote:

     

    Hi, Can you tell me if there will be a code incompatibility if the development environment uses the CFCOMPILE utility has coldfusion 10,  64 bit Windows 7 and the deployed environment of the files has coldfusion 10, 32 bit Windows 7?

     

    The easiest way to confirm this is to try it. However I would doubt it would work, no.

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 26, 2013 5:38 AM   in reply to Adam Cameron.

    Hi,

     

    I figured out a solution.  Thanks for the response.

    Francine

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 11, 2013 3:02 PM   in reply to Francine...

    Hi,

     

    So, what was the solution?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points