Is there anyway we do changing these permission values through JAVA?
Because I realized it can't be done changing in Registry, it's not the place to do that. Heheheh.
I don't see the relevance! That link is concerned with permissions from the point of view of Java security but the OP wants to change permissions of files on the underlying file system. OK, both are concerted with security but your reference is adding additional access constraints over and above those imposed by the underlying file system. For example, you might set up a Java security permission to edit the /etc/passwrd file but unless you are running as root (or some idiot has changed the underlying permissions of the file /etc/passwrd) you won't even be able to read it.
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
J. Insi
Ranch Hand
Joined: Aug 11, 2010
Posts: 83
posted
0
GEEEZZZ...
is that means we (from java) doesnt have the API for it?
is that means we (from java) doesnt have the API for it?
Java 7 will allow better control over file permissions but even then you will need to be the right sort of user to set some file/directory permissions. No language should allow one to bypass the security constraints imposed by the OS but I do feel that the current ridiculous minimal approach was badly thought out in the first place and has existed for far too long.
J. Insi
Ranch Hand
Joined: Aug 11, 2010
Posts: 83
posted
0
the strange case encountered is that
i am as the administrator in this laptop. (so I do have the right, didn't I ?)
And, I dunno why.
My installer created by Advanced Installer to bundle my java apps (developed by me) is fine.
Until its done the installation (copying the files, etc).
So thus, the directory and its file already copied there... but
at the time I run the java app I installed there.... well, the permission issues comes.