Posted By:
Nathan_Meyers
Posted On:
Monday, April 16, 2001 09:28 PM
FilePermission is used in a very different way than
you are trying to use it. It is used to describe permissions
requested and granted to Java code - for example, whether
code can execute a file or write to a directory.
The thing you are trying to do - change file modes -
is not supported from Java because it is not portable
across Java platforms. You could solve the problem
by writing JNI methods or by executing programs
that can do what you want - for example:
Runtime.getRuntime.exec("chmod a+x myfile");