I want to produce executables for other platforms for a Java utility.
I found Launch4J which produces a nice package for Windows, but I'd also like to find something similar that produces the same kind of a thing for Mac users and Linux users.
This isn't for security or code protection but more as a convenience. I really want to accomplish a relatively easy set of tasks:
Is there a utility that produces cross platform executables or shortcuts? Launch4j runs cross platform but only produces windows executables as far as I can tell.
Here are some possibilities:
The other approach is to use something like Install4j to generate installers for multiple platforms and have that take care of the launcher problem for you.
Finally, the launch4j site says this:
"Running Launch4j on other Java enabled platforms is a matter of getting a binary version of MinGW binutils 2.22 (windres and ld only) for your system or compiling them. If you'll provide these, I'll be able to create a binary package available for download."
Note that a launcher does not have to be a native application (e.g. a "EXE" file) to satisfy most of your requirements.
"I just want my work to be simple to use and look professional."
Hrumph! There are many large companies that ship large (and expensive) Java-based products that don't have a native launcher. My advice: if your customers don't demand it, don't waste your time on it.
Have a look at Packr. It can wrap jar into executable for Win, Mac and Unix. Also it packs JRE inside.
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