ZIP distribution of Mobility Pack 6.0 available

You can download ZIP of Mobility Pack cluster from netbeans.org. Unzip it to netbeans installation directory and add "mobility8" to [nb_install-dir]/etc/netbeans.clusters file. There is detailed guide available - http://wiki.netbeans.info/wiki/view/MobilityFromZipToNB It's in new NetBeans Wiki.
The zip build isn't tested and is uploaded every day.

Do you wonder what is the benefit for users?
The installer is available only for windows and linux. When you wanted to use Mobility Pack on different platform you had to use a strange hacks. Now you can unzip the Mobility Pack to any platform. That is good news for Mac users, Solaris users.
Comments:

Lucas, Please help me with this for macintosh: "Extract the content of the netbeans-mobility-YYMMDD.zip into your NetBeans installation directory. Add mobility8 cluster at the end of the list in etc/netbeans.clusters file in your nb_installation" What does add mobility8 cluster... mean? I found etc/netbeans.clusters inside the netbeans package for mac. I added the text "mobility8" to the end of the text file and resaved. I have the mobility8 directory inside the same directory as the Netbeans5.5 app. What am I missing! I'm desperate to run this on the mac without the hacks.

Posted by Marc Swindle on September 22, 2006 at 05:48 PM CEST #

Ok, I think I figured it out? Firstly I have to use the netbeans 6.0 ide. Second, the mobile8 folder has to be dragged intot the same directory as I found the etc in. Hope that helps someone else.

Posted by Marc Swindle on September 22, 2006 at 05:57 PM CEST #

Yes, exactly. Netbeans installation directory is the directory that you specify in the installer. All the clusters (ide8. nb6.0, platform7, etc...) are in this installation directory.
The zip distibution should be used with NetBeans 6.0 ONLY.

Posted by Lukas on September 25, 2006 at 06:57 AM CEST #

HELP!! I've followed all the directions I can find. I'm using a Mac (OSX 10.4.7) I'm tring to run the helloworld midlet on mPowerPlayer and it gets to the pre-verfiy step and coughs up this error: Created dir: /Users/marc/test/build/preverified Preverifying 3 file(s) into /Users/marc/test/build/preverified directory. Error preverifying class hello.HelloMidlet VERIFIER ERROR javax/microedition/midlet/MIDlet.class$(Ljava/lang/String;)Ljava/lang/Class;: Cannot find class java/lang/NoClassDefFoundError /Users/marc/test/nbproject/build-impl.xml:269: Preverification failed with error code 1. BUILD FAILED (total time: 1 second) I'm going insane since all references for this error are to Windows. It seems like something must be missing, but I don't know what. What does that mean on the Mac OS?

Posted by Marc Swindle on September 25, 2006 at 06:21 PM CEST #

What I would like to do, after I figure this error out, is to help re-write this: http://blog.no-panic.at/2006/04/13/j2me-development-on-netbeans-50-in-mac-os-x/ witha new set of instructions and downloads to run on v 5.5. Currently, v6 will not allow the java libraries to be selected when building a platform.

Posted by Marc Swindle on September 25, 2006 at 06:41 PM CEST #

Did follow the step 13?
http://blog.no-panic.at/2006/04/13/j2me-development-on-netbeans-50-in-mac-os-x/

Posted by Lukas on September 26, 2006 at 03:37 AM CEST #

Yes. But that step is incorrect since that referes to Java 1.5. You have to select the versions directory, then version 1.42, then classses.jar. 1.5 causes errors. At least it used to.

Posted by Marc Swindle on September 26, 2006 at 09:02 AM CEST #

Interstingly, I get the same error if I delete classes.jar from the sources. It's like it doesn't know it's there. Is there another way on the Mac version to make sure it's in the class path besides the sources window in the platform manager?

Posted by Marc Swindle on September 26, 2006 at 01:05 PM CEST #

I've written up the steps to get a NetBeans 6 + Mobility Pack + Mpowerplayer working on OS X. Catch them here.

Posted by Doug Rinckes on October 12, 2006 at 09:43 AM CEST #

Wow, cool, thank you, Doug. Pretty cool update of the steps for 6.0. Seems that I should try MobPack again on Mac ;)

Posted by Lukas on October 15, 2006 at 09:57 AM CEST #

I've been trying to download the binary cluster zip of the mobility pack and have had no luck. I select "6.0" as the version and "Daily" builds, but every time I get to the download screen there are no mobility items listed. Is there something I'm doing wrong? Have the mobility zip distributions been discontinued? I'd really like to get this working on OS X.

Posted by Paul Dennison on June 13, 2007 at 07:23 AM CEST #

the builds has been moved - http://bits.netbeans.org/download/6.0/nightly/. The ZIPs are in _moduleclesters_ directory.

Posted by Lukas on June 14, 2007 at 10:08 AM CEST #

Warning - could not install some modules: VMD MIDP - The module Text API was requested in version >= 6.16 but only 6.15 was found. Java ME Web Services Clients (JSR 172) - The module Text API was requested in version >= 6.16 but only 6.15 was found. Java ME Visual Editor - The module Text API was requested in version >= 6.16 but only 6.15 was found. VMD IO Java ME - The module Text API was requested in version >= 6.16 but only 6.15 was found. VMD IO - The module Text API was requested in version >= 6.16 but only 6.15 was found. VMD Inspector - The module Window System API was requested in version >= 6.16 but only 6.15 was found. Windows Mobile Deployment - The module Dialogs API was requested in version >= 7.4 but only 7.3 was found. Java ME Editor Support - The module Experimental Editor Hints SPI was requested in implementation version "4" but only "3" was found. Java ME Editor Support - The module Text API was requested in version >= 6.16 but only 6.15 was found. Java ME Build System Core - The module Text API was requested in version >= 6.16 but only 6.15 was found. Mobile Client to Web Application Generator - The module Text API was requested in version >= 6.16 but only 6.15 was found. VMD Code Generator - The module Text API was requested in version >= 6.16 but only 6.15 was found. Mobility Code Snippets - The module Text API was requested in version >= 6.16 but only 6.15 was found. Java ME SVG Core - The module Text API was requested in version >= 6.16 but only 6.15 was found. 25 further modules could not be installed due to the above problems.

Posted by Michael on June 26, 2007 at 08:15 PM CEST #

I apologize for the above comment. I must have accidentally hit submit before I had finished writing it (which I realized that I no longer needed to make in the first place). The problem is that I was trying to use the latest dev builds of the Mobility Pack with Milestone 9, which is clearly asking for trouble. Rather than upgrade from M9 to the latest dev build on OS X, I am installing M9 on Windows and will just copy over the mobility8 directory. It seems like a reasonable solution. I'll post back here if there are any problems ;) -Michael

Posted by Michael on June 26, 2007 at 08:44 PM CEST #

OK, so this wasn't as simple as it sounds.

Copying the mobility8 from the M9 version of Netbeans 6 on Windows did not work. I can create a Mobility project, but cannot build.

The build fails in the do-preverify step of build-impl.xml.

It's looking for the following file:

/Users/me/.netbeans/6.0m9/emulators/wtk22_win/emulator/wtk22/bin/preverify: not found

Now, I didn't put anything in my user directory, so it must have been copied from the mobility8 directory. Sure enough, there is s windows-specific zip in emulators-inst.

I grabbed some new build and this directory doesn't even exist.

What should I do? Will these problems be alleviated if I just run the latest Netbeans build? Are these builds stable enough to get work done?

Thanks.

-Michael

Posted by Michael on June 27, 2007 at 12:11 AM CEST #

Hi Michael, you cannot combine NB M9 with latestbuilds of Mobility Pack. The version of modules are increasing and Mobility Pack has to react to that. There are some dependencies among the modules. You have to satisfy them. To get rid off those problem it is always safe to use the same build of Mobility and NetBeans. In 6.0, there are available ZIPs of the three (basic, standard, full) distributions (e.g. http://bits.netbeans.org/download/6.0/nightly/200706261200/zip/). About the stability of NB6.0: I'd recomend you to wait for M10. The M10 should be available this week.

Posted by Lukas on June 27, 2007 at 04:44 AM CEST #

Hi Lukas, thank you for all of your help. I will post this question here because I'm not sure if there is a more appropriate place (for example, the appropriate blog post at no-panic is not accepting comments any more).

As has been documented elsewhere, it is necessary to include /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar.

With this included, I can build fine, but the IDE does not understand that methods like add of class Vector are not available and will happily compile the code. If I deselect /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes /Classes.jar from the Platform configuration page of my project's properties, and if my project has a Midlet, then I get the famous error in preverification ("Cannot find class java/lang/ClassLoader").

This is not really a big deal at all. I'm just curious if there is some solution, because I know that the Mobility Pack on Windows and Linux does not behave in this manner.

Thanks again, Michael

Posted by Michael on July 05, 2007 at 10:43 AM CEST #

Hi Michael,
the only solution is to use the right APIs. When you are using the classes.jar for compilation then there are available the Vector class and others that are not available in CLDC. Therefore it fails in runtime (emulator/device). It works on windows because you are using the right set of APIs from WTK (or other SDK).

I'd recommend you to try to move the that are used on Windows to the Mac and set up the classpath of the platform correctly. yYou can find the list of jars on classpath in XML that configures the platform. The XML is in <userdir>\\config\\Services\\Platforms\\org-netbeans-api-java-Platform\\
Let me know if you are successful.

Posted by Lukas on July 09, 2007 at 08:48 AM CEST #

Seems some people are having problems locating the mobility pack cluster zip file. At the moment you can find it here http://bits.netbeans.org/download/6.0/nightly/2007-10-23_14-16-45/zip/

Posted by Geoffrey on October 31, 2007 at 05:29 PM CET #

@Geoffrey - I aggre. The link to the ZIPs on the download page can be easily missed.<br><br>
I'd rather recommend following link to get the latest build. <br>
http://bits.netbeans.org/download/6.0/nightly/latest/zip/

Posted by Lukas on November 01, 2007 at 07:38 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

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...

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
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
   
       
Today
news
Blogroll

No bookmarks in folder

OldNews
MyTrash
NavBar
NetBeans
LinksToBeExpanded