Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Runtime.getRuntime().exec("/bin/chmod 777 <filePath>") ; Does not work

807603Nov 12 2007 — edited Nov 12 2007
Does anyone know why the following does not work?
String path = file.getAbsolutePath();
path = path.replaceAll(" ","\\\\ ");

Runtime.getRuntime().exec("/bin/chmod 777 "+path); would not work? It's on OSX.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2007
Added on Nov 12 2007
5 comments
1,498 views