I used a shell script to run a Java class. My script contains
#!/bin/sh java -jar jobs/job.jar
These are my unsuccessful attempts to launch it.
[ root@ ]#sh testapp.sh Unable to access jarfile jobs/job.jar
if i just do it on the command line it works fine
[ root@ ]#java -jar jobs/job.jar
thanks.
java bash shell
Sameek mishra
source share