Skip to main content

Setup SVGContactList project in NetBeans6 (M9)

6 replies [Last post]
Joined: 2007-05-21

Hi I am trying to import the above project into NetBeans but have been unsuccessful thus far...

1st, I downloaded the src from Subversion
2nd, I created a new project --> Mobility --> Import Wireless Toolkit Project. Then '(SVGContactList - JSR 226 (Scalable Vector Graphics) contact list demo' appears as a detected application, so I select this and choose:
J2ME Wireless Toolkit 2.2 as emulator platform
Default color phone as device
CLDC 1.1 as device config
MIDP-2.0 as dev profile
(These are all the defaults)

The project then appears in NetBeans but missing some libraries. I include the missing lib from NetBeans 'J2MECLDC'.

However, when I try to build the project I get this error from the 'extract-libs' target in the ant file:

Created dir: C:\Programming\Test\ImportedProject-SVGContactList2\build\compiled
Expanding: C:\WTK25-Beta2\lib\cldcapi10.jar into C:\Programming\Test\ImportedProject-SVGContactList2\build\compiled
C:\Programming\Test\ImportedProject-SVGContactList2\nbproject\build-impl.xml:358: java.lang.RuntimeException: data starting at 24 is in unknown format
BUILD FAILED (total time: 13 seconds)

I don't understant what I need to do next...can anybody please help?

Many thanks in advance.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-05-24

How do you download the source code from subversion? Does one have to do it file by file?

Many Thanks


Joined: 2007-05-21


You download a subversion client e.g. tortoisesvn ( and then checkout the demobox repository e.g.

you will be asked for your username and password.

More info here:



Terrence Barr - Evangelist, Java Mobile & Embedded

Sorry for the late reply. Here is the command-line info and a correction
on the path to use:

The command-line info is listed at the front page of the repository:

So to check out all of demo box:

svn checkout \ \
demobox --username username

Note that the path should be




because trunk only contains the www files of the site, not the demo code (the
www files of the project are managed with subversion as well).

-- Terrence wrote:
> No,
> You download a subversion client e.g. tortoisesvn ( and then checkout the demobox repository e.g.
> you will be asked for your username and password.
> More info here:
> Cheers,
> Damian
> [Message sent by forum member 'dam1an' (dam1an)]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

Joined: 2004-04-19

Hi Damien,

J2ME Wireless Toolkit 2.2 does not support JSR 226. In order to build and run any JSR 226 applications, you will need the Wireless Toolkit 2.5 version. If you don't have the Wireless Toolkit 2.5 already installed, you can either use NetBeans' Update Center to get this or download/install this version and then instruct NetBeans to find this.

If you want to use NetBeans' update center to get this version, here are the steps:
In NetBeans, select Tools -> Update Center. Then select "Java ME Platform SDK Catalog" as the Update Center to connect to. Once connected, it will show you various versions of the Wireless Toolkit, select the 2.5 version and hit "Add>", and then Next and the Wireless Toolkit will be downloaded. Once this is done, select the 2.5 version for installation, hit "Finish". This will launch the installer, which will install Wireless Toolkit 2.5. Follow appropriate prompts to install this. Once this is done, NetBeans will recognize Wireless Toolkit as a new Java ME platform emulator, and you can utilize this with your JSR 226 MIDlets.

The other mechanism to install Wireless Toolkit 2.5 which does not involve the Update Center is to go to and download and install Wireless Toolkit 2.5. Once this is done, in NetBeans, select "Tools" -> "Java Platform Manager" -> "Add Platform" -> then select "Java Micro Edition Platform Emulator" and then on hitting next, NetBeans will find any new Wireless Toolkit versions you have installed on your system and make them available in NetBeans.

Once you have Wireless Toolkit 2.5 available in NetBeans, please remember to always select that as your emulation platform for JSR 226 dependent apps. In order to do this, in NetBeans right click on your project, select "Properties", select "Platform", and make sure to select the "Sun Java(TM) Wireless Toolkit 2.5 for CLDC as the "Emulator Platform" instead of "J2ME Wireless Toolkit 2.2".

We hope to have this resolved in a near future version of NetBeans Mobility Pack which should have the default Wireless Toolkit version as 2.5.


Joined: 2007-05-21

Thank you gentlemen, the solution that you both suggested worked. After installing the new toolkit, I re-imported the SVGContactList project into NetBeans and everything worked first time. Great software. Thanks for the help guys.


Joined: 2007-02-09


You mentioned you're using the WTK version 2.2. To run SVGContactList with NetBeans, you will need to install and use the WTK version 2.5. You can download it at:

Once you have that installed, you will need to change the emulation platform for the project you already imported. To do that, right click on the project in the navigator pane on the top left of netbeans, select "properties", then select the "Sun Java Wireless Toolkit 2.5 for CLDC" option.