JavaCompilerTool
javax.tools.JavaCompilerTool
It is a JDK 1.6+ interface that lets the Java program fire up the Java compiler, (usually javac.exe) and compile Java source, all under the program's control, in a platform-independent way.
We can use it to compile code that exists only in RAM. We can generate the source code on the fly, compile it, and execute it.
Please find in some interesting pointers related to JavaCompilerTool:
http://www.javalobby.org/java/forums/m91985882.html
http://www.velocityreviews.com/forums/t318697-javacompilertool.html
Thanks.
No comments:
Post a Comment