Mac OS and Java Me SDK 3.0

Posted on by Nick. Posted in tutorial.

Sun have released not too long ago a Java ME SDK 3.0 that finally brings an official Wireless Toolkit Emulator to the Mac platform.

I have been dealing with SUN software for a while now and I was not expecting this to be a smooth ride. Those who’d dealt with the WTK on Windows/Linux platform are well aware of the limitations of these emulators. What I was not prepared for was to get so much clutter that would just not work more than a couple of times.

First impression: this wtk looks like the most polished emulator ever released by Sun.

Sadly, after using the thing for a few days I discovered that the old habits had not changed:

  • there is no menu entry to run an existing jad/jar pair. You have to right click on an emulator instance and then run it…
  • you cannot set-up a project starting from a jad/jar pair. There used to be an option to do this back in wtk 2.2…
  • after running a couple of apps the whole thing crashes an burns
  • when closing down the wtk a process is left lingering. Run this in a terminal:  ps aux | grep device-manager.app
  • switching the verbose mode when launching the emulator kills the whole thing dead!
  • they bundled ant 1.7.1 with the distro although ant is built in Mac OS
  • Permgen errors are thrown if you try to launch the app too often. LOL

Here’s what happened when I created a new project and tried to run it:

*** Error ***

Failed to connect to device 0!

Reason:

Emulator 0 terminated while waiting for it to register!

The same thing happens with Emulator 1 and 2 and 3 and 4 and 5 and 6 and … you get the picture.

Googling did return lots of forum posts, but hardly any answers…

So after wasting more than 2 hours on this issue I did the unthinkable: rebooted my mac! To my surprise the miracle happened during the reboot: I was finally able to run the project again.

Needless to say I am very disappointed but not surprised by the quality of this, early access, Java ME SDK.

Cheers…

Tagged: , , ,

Get a Trackback link

Comments (2)

  1. JavaME SDK Team on December 2, 2009 - 3:07 pm

    Thanks for your feedback. We have concentrated on overall stability of emulator and our “mini” ide after EA release and I believe we have resolved most of issues mentioned in your blog post.
    * shared memory limitation on Mac
    * perm gen space usage
    * jdk 1.5 and jdk 1.6 support
    * lingering process you have mentioned is device-manager component which must be always running and all emulators and devices registers there. When jdk 1.6 is used device-manager displays its status icon in main menu and can be simply stopped. Jdk 1.5 lacks such support and thus device-manager must be killed. Upgrading to jdk 1.6 is recommended and will resolve this problem.
    * project creation from jad/jar without having sources is not very useful and has been left out.
    * running jad/jar is possible from context menu on emulator instance or from commandline “emulator -Xdescriptor:”

    We will be glad to hear your opinion after final release is out. Please check our blog at http://blogs.sun.com/javamesdk where you can find what’s new and post your comments which will get right to development team.

  2. Nick on December 2, 2009 - 3:50 pm

    Thank you for your comment!
    I’m afraid I was using jdk 1.6 when I get the device manager errors. See below:
    java version “1.6.0_15″
    Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
    Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

    I’m looking forward to the next release.

Post a comment

1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|186|187|188|189|190|191|192|193|194|195|196|197|198|199|200|201|202|203|204|205|206|207|208|209|210|211|212|213| how to buy herbal soma online no prescription buying premarin buying risperdal on line chloroquine without prescription generic buying desyrel buy generic doxycycline benicar order online canada generic buying zyprexa buying bystolic pharmacy without prescription order fluoxetine pills viagra soft without prescription order cheap alesse purchasing hydrochlorothiazide pharmacy without prescription flagyl no prescription how to buy strattera online no prescription buy no prescription fluoxetineAccutane Online Doxycycline online Buy Cheap Lexapro Online No Prescription Prednisone Online Buy Accutane No Prescription