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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -