chown and chmod in java

Posted on 2006-06-25
Medium Priority
Last Modified: 2006-11-18
Is there a standard java api to do chown and chmod?
I really don't want to have to have to do Runtime.getRuntime().exec("chown blah /blah");
Question by:aturetsky
LVL 86

Assisted Solution

CEHJ earned 200 total points
ID: 16980158
In a word, no. You'll have to do it for each OS
LVL 92

Accepted Solution

objects earned 400 total points
ID: 16980197
LVL 14

Assisted Solution

hoomanv earned 400 total points
ID: 16980229
java 1.6 suports file permissions

LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 200 total points
ID: 16981184
Platform specific commands should be stored in a properties-file preferably and not hard-coded in the code.
LVL 86

Expert Comment

ID: 17038115

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question