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!

Runtime.exec() error codes

843798May 13 2003 — edited Jun 13 2003
I am getting the following exception when I try doing...

r.exec ( "cmd/c start/b notepad" );

Want to diagnose but don't see the errorcode any where documented.

thanks in advance.

java.io.IOException: CreateProcess: start dir error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:63)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:428)
at java.lang.Runtime.exec(Runtime.java:364)
at java.lang.Runtime.exec(Runtime.java:326)
at com.ugsolutions.aif.installer.Installer.main(Unknown Source)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2003
Added on May 13 2003
2 comments
894 views