NetBeans Mobility 6.1 on Mac (Leopard)

NetBeans Mobility 6.1 provides better support for Mac. The Mac is still unsupported platform - means we are not testing it. However the work with the NetBeans Mobility and MPowerPlayer should be easier. When you have the NetBeans Mobility 6.1 (a build after 2/21) then you can add the mpowerplayer emulator as any other Java ME emulator. You don't have to bother with setting up the Custom Emulator Platform. I tried it yesterday with a simple project.

UPDATE: there is NO INSTALLER for Mac that includes the Mobility. You can install whatever version of NB without Mobility to your Mac then you can download the Mobility functionality from Update Center with Tools > Plugins manager (look for Mobility category in Available tab).

Adding the MPowerPlayer platform

Step 1

Step 2

Step 3

MPowerPlayer emulator platform in Java Platform manager

Create new Mobility project with MPowerPlayer platform

Project properties with MpowerPlayer platform

Running sample project in MPowerPlayer emulator

Thanks for the reference. It looks cool!

I don't know if these exist, but does it work with other emulators too?

Posted by Aviad Ben Dov on February 22, 2008 at 11:37 AM CET #

The main problem being that MPowerPlayer supports almost no optional API. For example I'm developing an application using JSR-172, 89 and 179 and they're not supported.

Posted by Sebastien Arbogast on February 22, 2008 at 02:25 PM CET #

This works great! At least using the zip-file non-architecture specific version, can´t get the Android to work with 6.1 though.
Definitly gonna keep an eye on this blog, thx!

Posted by David Vikström on February 27, 2008 at 03:49 PM CET #

Thanks Lukas!
Nice to be able to use Netbeans (Mobility) also on my new Macbook air.

I had some problem to found mpowerplayer sdk after I had install it.

But finally I download it from: and then I was able to to add this SDK.
Perhaps it is already on my computer?
But now it works anyway.

Posted by Ove Nordström on March 08, 2008 at 07:28 AM CET #

I have followed your instructions but am still having some specific problems that other users may also be facing these are

I am getting a NoClassDefFoundError even though I have CLDC 1.1 selected in addition I also get an error when trying to use Boolean.TRUE/Boolean.FALSE. I think this is related to the CLDC 1.1 issue.

By the way using floats (testing for cldc1.1) works, if I explicitly select CLDC 1.0 then using floats as expected don't work.

Posted by Jonah on March 31, 2008 at 08:47 AM CEST #

@Jonah: It is importatant what NoClassDefFoundError is it. The mpowerplayer doesn't support all the MSA JSRs.

Could you provide more details?

Posted by Lukas on April 01, 2008 at 04:11 AM CEST #

Hi Lukas,

the exact error I get is the following cannot access java.lang.NoClassDefFoundError
file java/lang/NoClassDefFoundError.class not found

this happens when refering to .class java method

Posted by Jonah on April 02, 2008 at 02:36 PM CEST #

Netbeans doesn't recognize my mpp-sdk folder when I'm searching for the Java ME MIDP Platform Emulator..?

Posted by hap on April 16, 2008 at 04:06 AM CEST #

@hap: Same problem here. It seems the "Java ME MIDP Platform Emulator" options does not work. I try "Custom Java ME MIDP Platform Emulator" and it's installed.

Posted by Weijun on April 23, 2008 at 10:51 AM CEST #

@Hap, weijun: What is your operating system? What is your NetBeans version?

Please be aware that the MPP support works ONLY on Mac and with NetBeans Mobility 6.1 (builds afte 2/21)

Posted by Lukas on April 24, 2008 at 02:39 AM CEST #

Curious, folks - with NB 6.1+Mobility running on the MBA - does it make your MBA shut down one of its cores?

Posted by Rom on April 25, 2008 at 07:00 PM CEST #


"Netbeans doesn't recognize my mpp-sdk folder when I'm searching for the Java ME MIDP Platform Emulator..?"

Same problem here.

My problem was nb version.

I download 6.1rc2 and work :)

Thanks Lukas

Posted by guest on April 27, 2008 at 01:10 PM CEST #

hi there, I am new using NetBeans on my Mac, and I would love to know how to install the mobility pack here ( on net beans 6.1 ), could you help me a bit ?

is it just going to Tools->Plug-Ins and there select the "Mobility" plug-in ?

Your help would really be useful since If I can't install it , I would have to go back to VMware, and working in a more native way on my mac would be really great.

Thanks a lot .

Posted by Nicolas Goles on May 08, 2008 at 08:00 AM CEST #

@Nicolas Goles: Yes, you are right. The NetBeans Mobility isn't part of the installer for Mac therefore you have to get it from Update Center with Tools > Plugins. Get the whole Mobility category to have all the functionality of Mobility. Please, remember that you have to download the mpowerplayer or any other emulator separately.

Posted by Lukas on May 08, 2008 at 12:59 PM CEST #

Can MPowerPlayer use to develop application with bluetooth package?

Posted by Nisa on June 08, 2008 at 11:30 AM CEST #

google told me -;action=display;num=1138039380

Posted by Lukas on June 23, 2008 at 11:07 AM CEST #

To support m3g, it seems that if you follow mpowerplayer's instructions of copying m3g.jar, m3g-mac.jar and m3g-mac-native.jar into the mpp-sdk folder, netbeans will no longer detect mpowerplayer and therefore not install it as a j2me platform. not been able to get m3g working yet!?

Posted by Shai on July 02, 2008 at 06:42 AM CEST #

@Shai: Could you please fill new bug with more details and steps to reproduce?

Thank you.

Posted by Lukas on July 02, 2008 at 08:51 AM CEST #

I have netbeans 6.5 installed on my system and the Sun Java (TM) Wireless Toolkit 2.5.2 for CLDC is located in the usual folder i.e C:\\Program Files\\NetBeans 6.5\\mobility8\\WTK2.5.2

It was working fine for some thing but today it has stopped working suddenly althoung nothing has been modified in th installation folders

and it is not accessible in netbeans IDE anymore. I have tried to add it from "Java Platform Manager" but netbeans does not seem to work

The procedure I do is

One in Netbeans IDE
1. Open Java Platform Manager
2. Add Java Platform
3. Select "Java ME MIDP Platform Emulator"
4. Click "Next"

nothing happens...

I tried to uninstalled and reinstalled netbeans 3 times nothing seems to work.

Can any one help me out.

Posted by Khurram on March 04, 2009 at 06:42 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed

This is the main channel to share news, tips and other stuff related to my work. Sometimes you can find even personal stuff. Enjoy your reading...


« July 2016

No bookmarks in folder