On Thu, Nov 27, 2008 at 12:36 PM, C S wrote: >>You can also use the JDT compiler via JavaLoader, and compile and then >>load the classes on the fly, within CF. >> >>I like that a lot, personally. A fast way to do Java + CF. >> >>I've got some code that does it, been meaning to wrap it up into a >>little project or something. > > > Sounds interesting. Do have any snippets handy? >
Sure! Here's the meat of it (it wants javaloader in a subdir, as is): http://coldfusion.pastebin.com/m59a3d21d That should compile your source files, and you can then either use the javaloader to load the class files, or use something like this: http://coldfusion.pastebin.com/m651f1c8f To create a jar file, and load it. This is of course only useful for development, or perhaps on application initialization, as the javaloader used like this will be eating up your memory. It's a nice, fast way to code in both languages and test them out at the same time tho. Have fun, hopefully! -- Those who educate children well are more to be honored than they who produce them; for these only gave them life, those the art of living well. Aristotle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316033 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

