开发者

how to make files executable using jre 1.5?

开发者 https://www.devze.com 2023-01-25 17:34 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消