Equivalent of double-clickable .sh and .bat on Mac?

后端 未结 4 1486
无人共我
无人共我 2021-01-31 18:49

I am distributing a Java program where I want a double-clickable file to run

java -cp MyProgram.jar;MyLib.jar my.program.Main

On Windows I simp

4条回答
  •  春和景丽
    2021-01-31 19:05

    The answer about using the Jar Bundler tool is correct, but if you want to use a .sh file, make sure the unix permissions are set properly to something like 755 with CHMOD, and make sure the first line contains the path to a shell installed by default on Mac OS X. Also note that even with the +x bit set, it may still ask the user whether they want to open it or run it.

提交回复
热议问题