jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes Process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Process" Watch "Process" New topic


Tony Xu

Joined: Sep 27, 2001
Posts: 27
Process p = Runtime.getRuntime().exec(command);
here command is a String which I get from command line when I run the program as Java myProg args[0] args[1], then tons of errors:
java.io.IOException: CreateProcess: help error=0
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:418)
at java.lang.Runtime.exec(Runtime.java:361)
at java.lang.Runtime.exec(Runtime.java:325)
at sihai.myProg.main(myProg.java:18)
Exception in thread "main"
can anybody help?
Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
You might want to put up more explaintion and code if you want others to help
By failing to prepare, you are preparing to fail.
Benjamin Franklin (1706 - 1790)

By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
I agree. Here's the link: http://aspose.com/file-tools
subject: Process
It's not a secret anymore!