I want to use JavaCompiler
to dynamically create some classes.
I found the source code of the javax.tools
package, but there is no implementation; some posts on the internet say it depends on tools.jar
, I am not sure tools.jar
associates with JRE.
So, can I run the program in a JRE environment without JDK installed?
Another question, what is the implementation detail of JavaCompiler
, is it creating a new process to invoke the javac
command?
thanks