Netbeans Mobility Microemulator Support - plugin detail

This plugin enables basic support for Java ME CLDC development using Microemulator in Netbeans Mobility on Solaris, Mac OSX and Linux. Tutorial "How to use Microemuator Support" plugin (below)

NetBeans Plugin - Netbeans Mobility Microemulator Support
Plugin owner: kharezlak
Website: http://blogs.sun.com/kharezlak
Added: 2008-06-06
License: General Public License, version 2
Category:
Downloaded: 18,281 times
Rating:
 4.36, by 4 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.50 MB   Last Update: 2010-03-07

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

This plugin enables basic support for Java ME CLDC development using Microemulator in Netbeans Mobility on Solaris, Mac OSX and Linux.

Verifications for NetBeans versions

7.1 verification PASSED See verification details
Download plugin   Download size: 0.50 MB   Last Update: 2010-03-07

What's new in this version

This plugin enables basic support for Java ME CLDC development using Microemulator in Netbeans Mobility on Solaris, Mac OSX and Linux.

Verifications for NetBeans versions

Plugin is not subject to any verification



Introduction

More information:

https://microemulatorplugin.dev.java.net/

[ You have to be logged in to be able to comment. ]

User Comments

  

is this plug in still in developing ?

is this plug in still in developing ?
all the link to the web site dead.
Posted by harunaga on Apr 12, 2013
  

Setting up Microemulator in Netbeans using bluecove bluetooth

You can debug j2me bluetooth applications using real bluetooth by adjusting commands for Microemulation Platform in Java Platform Manager and using bluecove
  • Copy bluecove jars bluecove-2.1.0.jar and bluecove-gpl-2.1.0.jar in lib directory of microemulator
  • Tools->Java Platforms
  • Select J2ME->Micoremulator platform
  • Replace 'Preverify command' with java -jar /home/user/.netbeans/6.9/modules/ext/proguard.jar -injars {srcdir} -outjars {destdir}/ -libraryjars {platformhome}/lib/midpapi20.jar -libraryjars {platformhome}/lib/cldcapi11.jar -libraryjars {platformhome}/lib/microemu-jsr-82.jar -dontshrink -dontoptimize -dontobfuscate -microedition
  • Replace 'Execution Command' with java -cp {platformhome}/microemulator.jar:{platformhome}/lib/bluecove-2.1.0.jar:{platformhome}/lib/bluecove-gpl-2.1.0.jar org.microemu.app.Main {jadfile}
  • Replace 'Debugger Command' with java -Xdebug -Xrunjdwp:transport={debugtransport},server={debugserver},suspend={debugsuspend},address={debugaddress} -cp {platformhome}/microemulator.jar:{platformhome}/lib/bluecove-2.1.0.jar:{platformhome}/lib/bluecove-gpl-2.1.0.jar org.microemu.app.Main {jadfile}

Posted by hfmanson on Dec 30, 2011
  

Preverify error when more feature added

Hi! I work on MAC OS X Leopard and NetBeans 6.7. The plugin was installed correctly. I tried to build a midlet that use JSR75 specifying in the platform optional package the JSR75 but the output returns me:
Warning: FileSelector: can't find superclass or interface javax.microedition.io.file.FileSystemListener
Warning: there were 1 unresolved references to superclasses or interfaces.
You may need to specify additional library jars (using '-libraryjars'),
or perhaps the '-dontskipnonpubliclibraryclasses' option.
Error: Please correct the above warnings first.
/Users/Paolo/Documents/NetbeansWorkspace/ImageViewer/nbproject/build-impl.xml:461: Preverification failed with error code 1.
BUILD FAILED (total time: 0 seconds)

Like during the preverifying process no jsr-75 package is passed to proguard. I searched for any description of the property tag of the platform (like the {platformhome} property) to find a way to force the passage of the selected option to the preverifyng command. Briefly, the command:
java -jar /Users/Paolo/.netbeans/6.7/modules/ext/proguard.jar -injars {srcdir} -outjars {destdir}/ -libraryjars {platformhome}/lib/midpapi20.jar -libraryjars {platformhome}/lib/cldcapi11.jar -dontshrink -dontoptimize -dontobfuscate -microedition

should be changed in something like:
java -jar /Users/Paolo/.netbeans/6.7/modules/ext/proguard.jar -injars {srcdir} -outjars {destdir}/ -libraryjars {platformhome}/lib/midpapi20.jar -libraryjars {platformhome}/lib/cldcapi11.jar -libraryjars{selected-library} -dontshrink -dontoptimize -dontobfuscate -microedition

is it true? how can I use JSR75 or other option to be passed to preveriyer?
thanks a lot!
Posted by wicked on Jul 22, 2009
  

Preverification faild

hi all

i wrote a little example program to test the microemulator and i got the following error: Expecting class path separator ':' before '2/lib/midpapi20.jar' in argument number 7
with mpowerplayer it works, but not with the microemulator.
i am using netbeans 6.5 on mac os version 10.5.6

can you help me please?
Posted by studi on Mar 25, 2009
  

I get the following error when try to run HelloMIDlet app

/Users/mhs/NetBeansProjects/MobileApplication1/build.xml:7: Problem: failed to create task or type import
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
Posted by shojib on Mar 06, 2009
  

Thank you

Thank you for the easy to follow setup for NetBeans. It would be good if this were linked to by:
http://javablog.co.uk/2008/01/17/j2me-development-on-os-x-revisited/
which has a great description of the components used.
Posted by juliusspencer on Jan 07, 2009
  

java platform add 2

sory now i understand i extracted them before instaling the 2 plug-ins now the netbeans recognized the platform and istals it. Great thing your plug-in keep up the good work
Posted by azyl on Dec 05, 2008
  

java platform add

hy i`m rather new to linux but you should state that you have to download the 2 plug-ins from the first link and the platform from the download link in the guide above the homepage of the project all that beeing done when you download the platform it comes in a .tar.gz what should i do with that ? do i need to compile them? if i extract them , netbeans wont still reconoise them. for the add porpose.
Posted by azyl on Dec 05, 2008
  

RE: Cannot add platform

This version of plugin has been tested on Linux Ubuntu, Mac OS 10.5.5 and OpenSolaris. Only Java 5. I'll try to test it on Java 6 as soon as I have time to do it. Thanks for comments and suggestion!

Karol
Posted by kharezlak on Nov 24, 2008
  

RE: Cannot add platform

This version of plugin has been tested on Linux Ubuntu, Mac OS 10.5.5 and OpenSolaris. Only Java 5. I'll try to test it on Java 6 as soon as I have time to do it. Thanks for comments and suggestion!

Karol
Posted by kharezlak on Nov 24, 2008
  

Cannot add platform - a resolution

I had the same problem with no platform recognised but I found a resolution.

My environment:
Product Version: NetBeans IDE 6.1 (Build 200805300101)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Linux version 2.6.18.2-34-default running on i386; UTF-8; en_GB (nb)

I had downloaded "1223484143635_microemulator_plugin.zip" from the "download" button at the top of this page and successfully installed using instructions in step "3) Installing Microemulator support for Netbeans Mobility" above

I unzipped "1223484143635_microemulator_plugin.zip" into 2 files:
org-netbeans-modules-mobility-plugins-microemulator.nbm
org-netbeans-modules-mobility-plugins-proguard.nbm

Then in step "4) Add Microemulator Java ME platform" the ".nbm" files were not recognised as a platform.

Resolution
----------
In addition I downloaded and unpacked "microemulator-2.0.2.tar.gz" from the link http://sourceforge.net/project/showfiles.php?group_id=30014 from step "1) Download Microemulator" above.
The resulting unpacked "microemulator-2.0.2" folder was then recognised as a platform.

Maybe I didn't follow the instructions properly, or it's obvious but I hope it helps.
Posted by dfmiller on Oct 17, 2008
  

Cannot add platform

Hi, I can't Add MicroEmulator to Platforms. When I select dictionary with MicroEmulator and press "Search", it doesn't find anything. Can someone what have I do???
I'm using Linux!
Posted by buzzcz on Oct 15, 2008
  

RE: Cannot add platform

I'm sorry that I was wasting your time. I will use Microsoft Windows XP for this thing.
Posted by buzzcz on Oct 15, 2008
  

RE: Cannot add platform

Could you provide more information: What version of Netbeans do you use and what version Java do you use?
Posted by kharezlak on Oct 15, 2008
  

RE: Cannot add platform

I'm using NetBeans 6.1 and Java 6
Posted by buzzcz on Oct 15, 2008
  

Support for Netbeans 6.5

Support for Netbeans 6.5 added.
Posted by kharezlak on Oct 08, 2008
  

Re:Great but not working with the 6.5

It looks like plugin has some problems with 6.5 I'll try to fix it as soon as Netbeans 6.5 reach stable beta state.


Karol Harezlak

Posted by kharezlak on Jul 26, 2008
  

Re:Great but not working with the 6.5

I was using it with Dev version of 6.5 (my own build) but it was some time ago so I'll check it again.
Posted by kharezlak on Jul 25, 2008
  

Great but not working with the 6.5

This plugin would be a great addition to NetBeans Mobility package. I can't get it to work with the latest 6.5 version builds as it is showing me the following error:
...
Unable to access jarfile file:/Users/tommi/.netbeans/dev/modules/ext/proguard.jar!/
...
Posted by substance on Jul 24, 2008
  

Some problems, but are they plugin or MicroEmu problems

Hi !

First of all, nice to have this plugin. I have found earlier some instructions how to setup J2ME environment for Mac, but they appeared to be quite complicated. This plugin was easy to set up,

However, I noticed that application, that I have developed on Windows side, does not work with this plugin.
Forexample, I cannot enter decimal numbers and one command (for right side button) does not show up.

I assume that these are MicroEmu problems, but wanted to check out also here. I don't fully understand, what is the role of the plugin and how much MicroEmu is doing.
I also left message on the MicroEmu board but no response so far.
Posted by eetee on Jun 23, 2008
  

RE: Some problems, but are they plugin or MicroEmu problems


>Hi ! First of all, nice to have this plugin. I have found earlier some instructions how to setup J2ME environment for >Mac, but they appeared to be quite complicated.



Since version Mobility 6.1 you should not have any problems using MPowerPlayer with Mac OS X. It works "out of the box". You just add platform and point folder with MPowerPlayer emulator.



This plugin was easy to set up, However, I noticed that application, that I have developed on Windows side, does not work with this plugin. Forexample, I cannot enter decimal numbers and one command (for right side button) does not show up. I assume that these are MicroEmu problems, but wanted to check out also here. I don't fully understand, what is the role of the plugin and how much MicroEmu is doing. I also left message on the MicroEmu board but no response so far.



Most likely your problems may have something to do with Micoremulator runtime or generated code by Mobility but if the same code works correctly under the WTK so it is Microemulator runtime problem.

Posted by kharezlak on Jun 23, 2008
  

RE: Some problems, but are they plugin or MicroEmu problems


>Hi ! First of all, nice to have this plugin. I have found earlier some instructions how to setup J2ME environment for >Mac, but they appeared to be quite complicated.



Since version Mobility 6.1 you should not have any problems using MPowerPlayer with Mac OS X. It works "out of the box". You just add platform and point folder with MPowerPlayer emulator.



This plugin was easy to set up, However, I noticed that application, that I have developed on Windows side, does not work with this plugin. Forexample, I cannot enter decimal numbers and one command (for right side button) does not show up. I assume that these are MicroEmu problems, but wanted to check out also here. I don't fully understand, what is the role of the plugin and how much MicroEmu is doing. I also left message on the MicroEmu board but no response so far.



Most likely your problems may have something to do with Micoremulator runtime or generated code by Mobility but if the same code works correctly under the WTK so it is Microemulator runtime problem.

Posted by kharezlak on Jun 23, 2008
  

RE: Platform found now & bluetooth exception


>I use Mac OSX. After a lot of try, it works, but the problem isn't resolved. I have try to repeat the operation, and >sometimes NetBeans doesn't found any platform in the MicroEmulator folder.



I'll try to reproduce it and fix it. Thanks for reporting this issue.



>Another question is about the bluetooth support in the emulator. When i launch a jad file with the emulator from >netbeans, i have a classNotFoundError exception (Exception in thread "AWT-EventQueue-0" >java.lang.NoClassDefFoundError: javax/bluetooth/DiscoveryListener). Do I have to specify something in the >command line before running the app? regards David J.



You can find more information about it here: http://www.microemu.org/faq.html Unfortunately tJSR-82 in this version of plugin (1.0) is supported only during the compilation. I'll try to implement this feature in next release.

Posted by kharezlak on Jun 18, 2008
  

Platform found now & bluetooth exception

I use Mac OSX.
After a lot of try, it works, but the problem isn't resolved. I have try to repeat the operation, and sometimes NetBeans doesn't found any platform in the MicroEmulator folder.

Another question is about the bluetooth support in the emulator. When i launch a jad file with the emulator from netbeans, i have a classNotFoundError exception (Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/bluetooth/DiscoveryListener).

Do I have to specify something in the command line before running the app?

regards

David J.
Posted by djohannot on Jun 18, 2008
  

RE: Platform found now & bluetooth exception

>I use Mac OSX. After a lot of try, it works, but the problem isn't resolved. I have try to repeat the operation, and >sometimes NetBeans doesn't found any platform in the MicroEmulator folder.

I'll try to reproduce it and fix it. Thanks for reporting this issue.

>Another question is about the bluetooth support in the emulator. When i launch a jad file with the emulator from >netbeans, i have a classNotFoundError exception (Exception in thread "AWT-EventQueue-0" >java.lang.NoClassDefFoundError: javax/bluetooth/DiscoveryListener). Do I have to specify something in the >command line before running the app? regards David J.

You can find more information about it here:
http://www.microemu.org/faq.html
Unfortunately tJSR-82 in this version of plugin (1.0) is supported only during the compilation. I'll try to implement this feature in next release.
Posted by kharezlak on Jun 18, 2008
  

RE:no platform found

What operating system do you use? For example Windows is not currently supported only Linux, Solaris and Mac OS.
Posted by kharezlak on Jun 16, 2008
  

no platform found

Hi,
I've try to use MicroEmul with netbeans, but during the step 4(Add Microemulator Java ME platform.), netbeans doesn't found any platform in the MicroEmul platform.. do you have any idea of the reason? do you know where can i found the needed file?

I have installed MPowerPlayer platform with no problem, so it's not a problem of my computer or netbeans...

Regards,


David J.
Posted by djohannot on Jun 16, 2008
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo