Script to run .jar file on Mac OS X

batch-file, java, macos

Solution

You could create a shell script and run it with Terminal.

For example:

#!/bin/sh
java -jar path/to/jar/file.jar

To run it you need to set up the right user permission, so do `chmod u+x script-name` then run with `./script-name`

Problem

I want to run batch file (similar to Windows) on Mac OS X to run a jar file, after search I found it run batch script. I am not getting proper link from where I can take help. How can I create this?

Original source

Related problems