I have a jar file with a main class in it. The main class is already configured in the manifest file, meaning the jar can be executed in the following way:
java -jar Main.jar
I'd like to make it executable, meaning running it in the following way, without the need to provide any parameter. Windows:
Main.cmd
or Linux:
Main.sh
How can I package the jar into an executable?