Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Changing directory

843798Jun 25 2001 — edited Jun 26 2001
Hi,

Does anyone have any working examples of changing directories in UNIX using the Java Runtime api? If not, is this a bug and what is the bug number?

I have tried:

System.setProperty("user.dir", somedirectory);
Runtime.exec(some_command);

And it definitely does not work. I am using JDK 1.3 running on Solaris. My impression of Java's runtime api are getting worst after researching previous topics on this forum similar to my own over the last year. Lot's of questions and very little positive answers. There are lots of examples for NT and Windows 2000.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 24 2001
Added on Jun 25 2001
2 comments
64 views