J2ME, WTK22: Create process failed
Following the recent update from Sun with Java 6 (hooray) my WTK stopped working. Whenever I tried to compile a MIDlet I was presented with a plain and simple: Create process failed. No error code, no nothing. Just Create process failed. Yes, Redmond error style.
I noticed Eclipse (with the great EclipseME extension installed) was calling WTK22\bin\emulator.exe. I opened the file manager and noticed that next to the EXE file there was another emulator.bat file. Opened it up (right click, Edit…) and took note that in fact it calls the main Java executable. Well, surprise, surprise. When I reinstalled the JDK, I had it relocated onto another disk and since it couldn’t find it, emulator.exe (which, I believe, executes the contents of the BAT file, among others) spit out the create process failed error.
In brief, let’s recap the steps:
- Locate your JDK/JRE installation path
- Locate your WTK installation path and navigate to it. There should be a number of folders, enter the
binfolder. - Open up the
emulator.batfile and type in the correct path to your java.exe file. - Also edit
prefs.batandutils.batand fix the path
Voila. The WTK/J2ME “Create process failed” error is gone.









This really helped me a lot. This is the only valid source for the error message I googled for.
I had JDK 5.0 and J2ME Toolkit 2.1.
I uninstalled JDK 5.0 and J2ME Toolkit 2.1 and installed JDK 6.0 and Sun J2ME Toolkit 2.5 beta 2.
I’m glad this was any help to you. I regularly post around solutions to problems I bump into.
But this isnt a J2ME specific blog is it ?
Not exactly. It’s a blog of java - swing - j2me - php - linux - javascript - css - and so on. Just stuff I work with daily
Thanks for the fix! Single result in google for me, too.
Thanks for the tip, man! Made my day…
Hello,
I’m a newbie with Java. I have an error “CreateProcess failed ==> Path not found” installing the jdk-1_5_0_07-nb-5_0-win-ml.exe. Could you provide help please ?
Hi babastef.
You get that error from the installer?
First thanks to be so quick to answer.
Then yes I’ve got this error with the installshield assistant.
It might be a problem with the installer itself, as it may have been corrupted.
If you don’t insist on using JDK5, you should try installing a newer version of the development kit (JDK6 is out, you can get it at http://java.sun.com/javase/downloads/index.jsp ).
I have j2sdk-1_4_2_11-windows-i586-p on my disk somewhere if you need an older version of it.
It worked like a magic. Millions of thanks for the solution.
Faisal
No problem
Great thanks to you Now I can start
Clau - you (and google) are life-savers !
I’ve been developing software for… well, longer than I’d like to admit to, and in the past you could get stuck for days calling for support with stuff like this.
Thanks for sharing !
You’re very welcome. I’m glad I could help
Thanks!
I had the same problem here and your solution worked!
Much thanks. I was having the same problem with WTK2.5.2. The .bat files turned into .vm files, but the solution was the same.
[…] 话说索爱的模拟器我装上后,用的次数其实不多。今天在eclipse中使用它的S700的模拟器,总是报告说:“Create Process Fail”,也没有进一步的说明。检查了半天,不思其解。后来在google上搜索一下,发现有人碰到类似的问题:http://clau.sparetimegroup.net/index.php/programming/java/j2me/j2me-wtk22-create-process-failed/。 […]