How to use the Bundle JRE parameter in Launch4j

I worked with Java for a while, long enough to start creating my own programs using graphical interfaces, and not just small examples of programs from the tutorial that runs in Eclipse. I wanted to make my programs more user-friendly, especially Windows users, by wrapping the executable Jar in Exe. So, I found Launch4j seems to work pretty well, but I have no idea what more than half of the options in this program mean (it took me an hour to figure out how to get it to create a functional Exe). I passed this on to the fried for a test, and he returned to me, saying that he did not receive a JRE error. Well, I thought, how can I get end users to have a JRE, then I noticed a variant of the JRE package in Launch4j. But how to use it? Download the standalone JRE installer for Windowsand he will launch it if he cannot find the installed one? Then what about the correct version for the system (the 32-bit version is 64-bit). I think I thought I would bring it to this mysterious package containing the JRE, and my wrapped program would use this to run. Just someone can tell me how to use this function, what if I need to download something, etc.

If Launch4j is not the best program for this, then please recommend something else, I just started doing it, because all I know is there is a better shell.

+5
source share
2 answers

For your "installation" you will need an already installed JRE (with a folder jre/binwith java.exeand all other files) for a "linked" JRE. You cannot package the Java installer using start4j.

Does your friend show the ability to download and install Java if he does not find the JRE?

If you want to install Java with your application, take a look at NSIS .

: IzPack. . , Java, launch4j → Java. ( IzPack, , .)

+3

launch4j, JRE. , : https://github.com/maztan/launch4j_auto_jre_download. launch4j, "JRE".

+1

All Articles