开发者

how to make files executable using jre 1.5?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜