How to get WTK2.5.2 runing on Mac OS X
By David Askirk on Mar 04, 2009
It is very easy. Download the linux edition of WTK2.5.2.
When asked for a Java interprenter paste this string: /Library/Java/Home/bin/ (or wherever you must hide your Java on your Mac)
When the toolkit is installed, copy the WTK2.5.2/wtklib/Linux to WTK2.5.2/wtklib/Mac and you can run it.
Now to compile and build project. The preverify tool is made for linux, but I will try later on to use the one for sunspots and return any result i got.
The SunSPOT preverify tool cannot be used. So before a Mac Edition of the Wireless Toolkit is released must you use windows or linux to develop for mobilephones.
The page http://developers.sun.com/mobility/midp/articles/osx/ show a way to get up and runing without using the toolkit.
To get the MIDP packege running on 10.5.6 using XQuartz some libraries need to be relinked.
Run the following commands:
ln -s libXpm4.11.0.dylib libXpm4.11.dylib
ln -s libXt6.dylib libXt6.0.dylib
ln -s libX116.2.0.dylib libX116.2.dylib
ln -s libICE6.3.0.dylib libICE6.3.dylib
ln -s libSM6.0.0.dylib libSM6.0.dylib
Then will the MIDP package work, and you can start developing J2ME apps for your phone. More about this later.