views:

146

answers:

2

If I have a jar that I need to run using java -jar FOO.jar on unix, does this depend on the read, write or execute bit? Or some combination thereof?

+8  A: 

You just need read on the .jar, since 'java' is what you're executing, and it reads the jar.

Shin
And execute permissions on the directories comprising the path.
Tom Hawtin - tackline
+2  A: 

You will need read, since the jar is virtually executed by java (of course java needs to have exec permissions). But if you have a program that stores some datas inside itself (it can happen, for example storing settings) I would suggest to have also the write attribute set.

Jack