This site requires JavaScript, please enable it in your browser!
Greenfoot back
pixelherodev
pixelherodev wrote ...

2016/4/29

Generate native installers/executables from a JAR file

pixelherodev pixelherodev

2016/4/29

#
I looked at the source for Greenfoot, and I was able to find the native parts, but I want to make sure I'm not skipping an easier solution: What files do I need to modify/change to create an ANT build script for a custom JAR file? I want to generate native installers and/or executables from a JAR for Windows/Mac/Linux. Short of using Install4J, which I will not pay for, is there a way to automatically generate a build script, and if not, what do I need to do myself?
davmac davmac

2016/4/29

#
It isn't clear to me exactly what you are asking. The Greenfoot build scripts are not automatically generated, they were written by hand. If you want to use them to create an executable launcher/installer for another application then you would need to modify them to remove Greenfoot-specific files and include appropriate references to your own file(s). (You'd need to modify the build.xml files, the Wix script, the native launchers (C/C++), the package templates). Recent versions of the JDK include a "javapackager" tool which can package Java applications to native deployment bundles. This might meet your needs. The documentation for it can be found here.
You need to login to post a reply.