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!

Using Runtime exec() to open java on other directory

843798Jun 23 2001 — edited Jun 26 2001
HI, I have a little problem and i hope everyone can help me out abit. You see when u use Runtime.exec(), how to you use it so that when the file you want to open is different from your program directory.
For example,
my program is in c:\windows\desktop
but the file i want to open eg. Somthing.class is in c:\my documents\
How do I open it using java and i wish to open the file using the java command. Thank a million

Comments

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

Post Details

Locked on Jul 24 2001
Added on Jun 23 2001
2 comments
77 views