I have a simple bash script which runs my java program. Here is it:
run.sh
#!/bin/sh
java -jar target/my-jar-arch.jar
I want to pass arguments to this script, which must pass them to java program:
bash run.sh myArg -key 100
When I try to execute this line my app doesn't get any parameters. How can I fix it?
Change your invocation line to: