Write an executable .sh file with Java for OSX

后端 未结 5 1308
情书的邮戳
情书的邮戳 2021-01-18 00:59

So I am trying to write an .sh file that will be executable, this is how I\'m currently writing it:

Writer output = null;

try {
  output = new BufferedWrite         


        
5条回答
  •  隐瞒了意图╮
    2021-01-18 01:20

    On Mac OS X, besides chmod +x, you have to give a .command extension to your shell script if you want to launch it with a double-click.

提交回复
热议问题