aspose file tools*
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
Author

Process

Tony Xu
Greenhorn

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
Dale
------------------
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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Process