I want to be able to execute this code:
java -jar myJar.jar arg0 arg1
as:
program arg0 arg1
I'm on Windows and was only able to find how to do it on Linux (which I don't have and can't understand anyway).
I want to be able to execute this code:
java -jar myJar.jar arg0 arg1
as:
program arg0 arg1
I'm on Windows and was only able to find how to do it on Linux (which I don't have and can't understand anyway).
You can write a custom bash
script that executes your jar.
With "$@"
you can forward all arguments passed to the bash script to your jar.
java -jar <your-jar> "$@"
Execute it like that:
script.bat arg1 arg2 arg3