> Hi thanks for that. Does this mean that CFcompile is not
a very reliable tool?
Completely reliable. It's just the way compilation works: one
needs to
compile the code for the platform (in this case: the JVM
version) it's
going to run on.
> if the JVM is different or upgraded then the application
could fail to work, is
> that right?
Yep.
I'm not sure how exactly spot on one needs to be with the JVM
versions, as
I've only ever fallen afoul of it once, and after that I've
just compiled
the code on the box that will be running it. I realise not
everyone has
this luxury, but I do, so I've never needed a more generic
solution.
> I'm trying to package an application so the core code
cannot be changed, in
> CF5/mx I had a good encrypt program that would encrypt
all of the templates,
It's not that good, to be honest. It's very easy to reverse
the
encryption. Compilation is a far better code obfuscation
process because
even though the resultant class files can be decompiled, they
decompile to
JAVA, not CF.
> but it does not work with CF7 Or CF8.
Well... as far as I know it does. I've certainly been on the
receiving end
of encrypted applications that were written for CFMX7 / CF8
and they run
fine. And they decrypt with the same old tools I always use,
so the
encryption scheme seems the same too. It's not something I
ever do with my
own code, so I'm not that expert in the ins and outs.
> I know that encrypting files in not a
> perfect solution, but it is an option. Is there a tool
out the to encrypt an
> entire site in CF7/8?
Yep, the same one as before: cfencode. In my installation
it's located at
[JRun dir]\servers\[CF instance
name]\cfusion-ear\cfusion-war\WEB-INF\cfusion\bin\cfencode.exe
--
Adam