Dynamic Compiling Without Create Physical File

感情迁移 提交于 2019-11-29 17:27:48
Amir Afghani

For what your doing, I would use Janino. It appears doable using just the JavaCompiler, but not well documented. See the comment I added withe linked question for an example of going about it with the JavaCompiler.

EDIT: I found an easy to understand example using the JavaCompiler.

To avoid creation of class file by the JavaCompiler use the argument: "-proc:only"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!