MIDP 2 on Mac OS X is here !

bluetoothSince Mac OS X is already my preferred platform for Java development, I was very pleased to experience that J2ME development for MIDP 2.0 has finally become reality. I can now develop, compile, verify, package, run, debug and deploy MIDP 2.0 MIDlets from within my Java IDE (IntelliJ IDEA). All thanks to Michael Powers mpowerplayer. Best way to start is to go to developer.mpowerplayer.com and download the SDK. But there is more.

The Mpowerplayer offers the tools familiar to J2ME developers: MIDP2.0 jars, the preverify tool and a MIDP2.0 emulator. Additionally, if your Mac has Bluetooth support, you can quickly deploy your MIDLet using the OS X Bluetooth File Exchange. To automate deployment I wrote a one-line script btsend.sh that is called directly from within Ant:

/usr/bin/open -a "/Applications/Utilities/Bluetooth File Exchange.app" $1

and then from within Ant

<target name="deploy">
<exec executable="${basedir}/btsend.sh">
<arg line="${myproject.jar}"/>


The only manual action is to select your mobile device from the Bluetooth File Exchange list of devices. On my Nokia 6600 phone I receive an incoming message and the installer is run.

gps-earthmateIf you are developing Bluetooth-based MIDlets using the JSR-82 Bluetooth API you can additionally download, evaluate and acquire the Avetana JSR-82 implementation for OS X. This allows you to fully test Bluetooth-based J2ME apps from within your IDE on Mac OS X. For example, I was able to connect and test to the Delorme Blue Logger GPS



  1. could please provide details on actually how did you integrate MPP-SDK with IntelliJ? i copied the jar files into the appropriate directories, and i still don’t see a “mobile” option in the project wizard.

  2. MPP-SDK is not an IntelliJ plugin. You can run or debug with the emulator as a program by adding an Entry, supplying your jar/jad as a parameter. I also use an Ant build file that compiles/preverifies/assembles the jar/jad. Finally you can even start the emulator and use Java remote debugging to connect to it. If I find time I’ll explain the precise steps involved in the entire setup.

  3. I’m also stuck with the debugging part. I’ve been able to code my project ( getting code hints ) an dbiuld it using the WTK, but I don’t know how to launch the mpowerplayer to debug my project.

    I’d appreciate any hint you could give us.

  4. Make an entry in the “Run Debug Configurations” in IntelliJ (or your IDE of choice) where com.mpp.player.mplb (the MPowerPlayer main()) is the main class to run/debug. As a parameter entry provide your MIDlet jad or jar file and off your go. Make sure that the MPowerPlayer MPP-SDK jars are in your project classpath (player.jar, midp.jar, cldc.jar, adapter.jar).

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.