Simple batch file to run java program
I am trying to get a bash file to run a java program with a bunch of arguments. This is what I tried 1. Create a little file > run_Java.sh 2. In the bash file type: echo "java -jar my_Java_app arguments". (To manually run the program I type "java -jar my_Java_app arguments" into the command line.) 3. Make it executable with chmod +x 4. Moved it to /usr/bin 5. Type run_Java.sh in terminal The terminal just displays the command, but does not execute it. I tried program and exec in place of echo. Any ideas? |
No comments:
Post a Comment