Home > Mobile >  Is there a way I can bundle a jre in a Launch4j .exe file?
Is there a way I can bundle a jre in a Launch4j .exe file?

Time:11-01

I would like to bundle a jre folder into my generated launch4j .exe file via maven pom.xml (For some reason, I don't want an installer, just a click to run Java application that has its own embedded jre). Is it possible? I have read through several posts and I don't get a maven automated one. I don't want to do it the manual way, just by packaging through maven because of some reasons

I've tried bundling a jre folder into an exe file via maven but it ends up not running after I uninstall java from my system or after I remove the jre folder from which the pom.xml Launch4j configuration was using . Kindly assist.

CodePudding user response:

Update: I found a perfect tool for just the above task, Check this example

  • Related