http://stackoverflow.com/questions/3843996/how-to-compile-rhino-javascript-files-to-class-bytecode-for-java-at-runtime