Skip to Main Content

Java APIs

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!

IOException--CreateProcess--Win32Process!!!!

843810Jun 26 2003 — edited Feb 21 2008
Hi every body.
Does someone know the meaning of this error?

java.io.IOException: CreateProcess: prueba 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 org.apache.jsp.ChangeDirBajaRCXX_jsp._jspService(ChangeDirBaja
p.java:185)....................................

.....................................................

It's the result of this code:
cmd="prueba.bat";
exec(cmd);

and the prueba.bat is really simple:
@echo off
lejos HelloWorld

'lejos' is an exe file.

If i try 'lejos HelloWorld' from the MS-DOS it runs ok.

Thanks!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2008
Added on Jun 26 2003
39 comments
1,125 views