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

后端 未结 4 1474
无人共我
无人共我 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 18:56

    For Java applications on Mac, you really should use Apple's Jar Bundler (in the Developer Tools/Applications/Utilities folder; really a symlink to /usr/share/java/Tools/Jar Bundler). It lets you make a proper OS X double-clickable app, including setting preferences for e.g. using the Mac toolbar, JVM version, graphics system, OS X app metadata and classpath/resources.

提交回复
热议问题