Create standalone executable from Java code for Windows, OSX and Linux all at once
问题 i'm coding a project in Java and building it with gradle. I need to keep it simple and compile it into standalone binaries for Windows, Mac and Linux. Is there anything which can build all of this binaries or must i use a separate lib (like Launch4j for Windows executables) for every single binary? I'd like to call a single "build-all-binarys"-like task in gradle and get a .exe, .app and .bin file out of it. It would be nice to have the possibility to bundle a JRE into the binary as well. 回答1