I wnat to give executable p开发者_StackOverflow社区ermssisons to a file using java 5 . I know that jre6 File has the api's for changing permissions. How to do it using java 5 . Any apache commons is there
For Linux/Unix: You can use Runtime.getRuntime().exec() to execute /bin/chmod.
精彩评论