I tried run an ant in my J2ME project, but i found this error: BUILD FAILED: C:\des\crazy\java\build.xml:40: Execute failed: java.io.IOException: CreateProcess: preverify.exe -classpath C:\WTK21\lib\midpapi20.jar -d C:\des\crazy\java\bin\build\preverified C:\des\crazy\java\bin error=2
I am trying preverifies the code, but i don�t know what�s happen.
I have just had this same problem. You have to ensure the folder where this executable lives is included in your build path. You also need to explicitly define where the executable lives in your build file if it still doesn't work.
For instance my problem: C:\workspace\WayneGrant\build.exe.xml:19: Execute failed: java.io.IOException: CreateProcess: makensis.exe error=2
From this line: <exec executable="makensis.exe"/>
Was fixed by: <project name="NSIS" default="build" basedir="." >