My application needs to do some compilation as part of the install process (I know this is bad form, but there it is).
For compiling, I would simply add lib/tools.jar from the JDK to the distribution tree and add it to the classpath of the launcher. Then you can programatically compile classes.
A more lightweight solution would be to use janino.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With