I'm trying to run a jar that is located at /Library/Java/jack.jar, this works:
java -jar /Library/Java/jack.jar
However, I want to run it without the path, relying on the class path. The default class path includes /Library/Java, but this fails with "Unable to access jarfile":
java -jar jack.jar
Why? What's more, this also fails (same error):
java -cp /Library/Java -jar jack.jar
What's the problem/what am I doing wrong?
Thanks.