Possible Duplicate:
How do i programmatically change file permissions?
How can I set the umask from within java?
In Linux, I am trying to give full permission (777) to a folder structure (say ex: "home/test/sample/") for creating a MySQL table with changing the data directory to the user specific location from my application which is written in Java.
How can I give full permission to a folder structure from Java?