Lukas Hasik's notes about work life (and more)

XML

Subscribe to Lukas Hasik's Weblog on your cell phone Powered by Technorati

Let's have a ride
« February 2010
SunMonTueWedThuFriSat
 
1
2
3
4
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
      
       
Today


Today's Page Hits: 423

my.netbeans.org

News in pictures


the links



Recent Entries

Lukas Hasik's Weblog
All recent entries

Licence Info

This work is licensed under a Creative Commons License
LICENCE

Map of visitors

Locations of visitors to this page
Listed on BlogShares


20080222 Friday February 22, 2008
NetBeans Mobility 6.1 on Mac (Leopard) NetBeans

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



Comments [19] ( Feb 22 2008, 03:49:47 PM CET ) Permalink del.icio.us furl simpy slashdot technorati digg

Trackback URL: http://blogs.sun.com/lukas/entry/mobility_on_leopard
Comments:

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 07:37 PM 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 10: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 11: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: http://mpowerplayer.com/?p=14 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 03:28 PM 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 03:47 PM 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 11:11 AM CEST #

Hi Lukas,

the exact error I get is the following
StartPage.java:359: 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 09: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 11: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 05:51 PM 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 09: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 26, 2008 at 02:00 AM CEST #

Hi

"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 87.196.207.74 on April 27, 2008 at 08: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 03:00 PM 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 07:59 PM CEST #

Can MPowerPlayer use to develop application with bluetooth package?
How?

Posted by Nisa on June 08, 2008 at 06:30 PM CEST #

google told me - http://mobile.processing.org/discourse/YaBB.cgi?board=softbugs;action=display;num=1138039380

Posted by Lukas on June 23, 2008 at 06:07 PM 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 01:42 PM CEST #

@Shai: Could you please fill new bug with more details and steps to reproduce? http://www.netbeans.org/issues/enter_bug.cgi?component=mobility

Thank you.

Posted by Lukas on July 02, 2008 at 03:51 PM 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 02:42 PM CET #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed


Disclaimer: The contents of my blog represent my personal opinions which may differ from official views of my employer, Sun Microsystems.