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?
views:
146answers:
2
+8
A:
You just need read on the .jar, since 'java' is what you're executing, and it reads the jar.
Shin
2010-04-19 15:47:14
And execute permissions on the directories comprising the path.
Tom Hawtin - tackline
2010-04-19 16:02:53
+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
2010-04-19 15:53:42