solution for io exception [message #92277] |
Fri, 14 May 2004 08:48 |
BIndi
Messages: 4 Registered: March 2003
|
Junior Member |
|
|
import java.io.*;
import java.lang.*;
public class k {
public static void main (String[[]] args) throws IOException, InterruptedException {
String[[]] cmdArray = {"c:\wtk20\bin\emulator","-classpath \apps\audidemo\bin\audiodemo.jar", "-Xdescriptor:\apps\bin\audidemo\audiodemo.jad"};
Process proc = Runtime.getRuntime().exec("run.bat");
System.out.println("hello");
Thread.currentThread().join();
}
}
its showing me the following error:
Exception in thread "main" java.io.IOException: CreateProcess: .bat error=2
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: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 k.main(k.java:6)
|
|
|
|
|