doing chown and chmod in java

Is there a standard java api to do chown and chmod?
I really don't want to have to have to Runtime.getRuntime().exec("chown blah /blah");
Who is Participating?

Improve company productivity with a Business Account.Sign Up

andre6bConnect With a Mentor Commented:
Not that I know of.  I think the reason is that Unix-style permissions are not portable.  FAT32 only have a couple of attributes, and NTFS has ACLs.  But you can use JNI if you really need the functionality.
HonorGodConnect With a Mentor Commented:
no, there isn't.
aturetskyAuthor Commented:
sorry, I posted it in a wrong forum, I meant to post it in Java Programming.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.