Elarbi Mohamed Aymen
Elarbi Mohamed Aymen

Reputation: 1710

Bundle JRE inside JAR/EXE application

i have a maven project and with launch4j plugin i managed to create the EXE file from it. The problem is when i run that EXE file into a machine without JAVA it wont start, and i get errors.

I've looked in different places but the answer is always to use "INNO SETUP COMPILER" my question is : Is there any way so that i can deliver to the end user an EXE file and he won't have to install JAVA to run it ?

Upvotes: 0

Views: 720

Answers (1)

Olivier Grégoire
Olivier Grégoire

Reputation: 35457

If you use Java 9, you could look into jlink. I have no time to dig further into this right now, so I'll only post a link, despite Stack Overflow's rules...

Check this tutorial and the official reference for jlink.

Upvotes: 1

Related Questions