I am under the impression that Launch4J cannot create launchers for OS X. Correct me, if I am wrong.
I would like to use something similar so I can set the initial heap size/ max heap size for my Java application without using command line options (java -jar -Xmx1024m etc....).
Any recommendations?
What you want is an Application Bundle. It include a properties file (Info.plist) where you can set things like Xmx
, etc.
You can also use Oracle's appbundler tool to create an application bundle.
Another no-brainer option is to create a shell script. Something like this:
#!/bin/bash
java -jar myJar.jar