Shell script to launch Java app won't execute -
i using debian , xterm.
i have created file 'run.sh' containing following:
java -cp bin main read -n1 -r ip "press key continue..." key
in properties window gave permission run program.
double clicking file nothing. right click 'execute' nothing. open-with uxterm nothing.
if open terminal in same directory , type
java -cp bin main
then run, shell script file never works.
what doing wrong here?
your shell script file doesn't seem have shebang line,
#!/usr/bin/env bash java -cp bin main read -n1 -r ip "press key continue..." key
and make sure has execute permissions
chmod a+x <script_file>
Comments
Post a Comment