I was reading over the changes in Mark Mandels latest release of JavaLoader and noticed that it can now compile .java on the fly. That was pretty cool in itself but got me thinking.
I could now theoretically write java code inline, write it out to a file and let javaloader compile and load the class for me then clean up the file for the next run. I tried it and it worked.
I then ask Mark if it works with ColdFusion 9's VFS ( Virtual File System ). Mark hadn't tried this and wasn't sure so I gave it a go.
Guess what. Yep it works perfectly.
Here is the code and an image of the output:
Here is the actual code Running:
http://cf9.kukiel.net/demos/java/
8 comments: