0

I attempted to make a shell script to launch a java program packaged into a .jar file. It should have been pretty simple.

#!/bin/sh
java -jar Test.jar

but for some reason this script never runs. i've manually executed the command and it works perfectly, i've checked the path of the JVM and nothing is wrong. What have i missed? can anyone help?

2
Contributors
2
Replies
6
Views
6 Years
Discussion Span
Last Post by Digitalwolf
0

That's interesting!

If you can run that from the command line, it *should* work in a script as well... Perhaps try using the full path to 'java' and the full path to the Test.jar?

0

yes that did the trick :), what i did was,

cd directorypath;java -jar Test.jar;
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.