Yeah, it's probably not going to happen. I mean, I am getting famous for saying that it's software, so we can do anything, but the problem is the amount of work it takes to do a thing. In this case you have to load a good amount of the CF server into memory, all the other related classes (one .class for the cfc, one for each cffunction, etc.), then fake a request & response object, or whatever servlets do (I knew at one point). Your best bet is to not do this.
It would be much easier to call your CF server rather than try to use the generated code out of context. There are many ways to call into CF from Java. The easiest one would be to hit it via a HTTP URI. Second easiest would be a web service. Third, you can use the CF services gateway - you can set up a local socket listener, which should be really performant. Also, I think Terrence Ryan had a project on RIAForge that lets you call it via the command line console. I wonder, what is the underlying reason for wanting to call the generated classes? Sort of an odd request. Why are you doing this? Maybe there's a better way to accomplish your end goal. nathan strutz [www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz] On Sat, Aug 6, 2011 at 10:53 AM, Brook Davies <cft...@logiforms.com> wrote: > > Hey, I don't know if this is possible. I want to take a class file from the > cfclasses/ directory and run it from the command line outside of the CF > server. It complains about not being able to find some cf related classes. > I assume this is not at all possible since the classes include lots of CF > specific classes for various functions. Is that right? Is this not > possible? > > > > Brook > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346560 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm