Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I bundle a complete jdk with my install4j installation?

Tags:

install4j

My application needs to do some compilation as part of the install process (I know this is bad form, but there it is).

like image 629
Robert Moskal Avatar asked Dec 08 '25 06:12

Robert Moskal


1 Answers

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.

like image 75
Ingo Kegel Avatar answered Dec 12 '25 04:12

Ingo Kegel