#!/bin/sh java -jar jobs/job.jar
这些是我尝试运行它的失败.
[root@]#sh testapp.sh Unable to access jarfile jobs/job.jar
如果我只是在命令行执行此操作,它工作正常
[root@]#java -jar jobs/job.jar
谢谢.