compilation - Compile and execute java source file in memory -


say have string containing content of .java file. apis out there allow me compile source file virtual .class file (i.e. generate , store content in memory, not creating actual physical .class file on disk)? , "virtual" .class loaded , executed in jvm?

edit 1: reason want because sometimes, application might not have write permission.

use javacompiler this. think trick define custom javafilemanager.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -