Skip to main content

Setup SVGContactList project in NetBeans6 (M9)

6 replies [Last post]
dam1an
Offline
Joined: 2007-05-21
Points: 0

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:

extract-libs:
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.

Damian

Reply viewing options

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

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

Many Thanks

Luis

dam1an
Offline
Joined: 2007-05-21
Points: 0

No,

You download a subversion client e.g. tortoisesvn (http://tortoisesvn.tigris.org/) and then checkout the demobox repository e.g.

https://meapplicationdevelopers.dev.java.net/svn/meapplicationdevelopers...

you will be asked for your java.net username and password.

More info here:
https://meapplicationdevelopers.dev.java.net/source/browse/meapplication...

Cheers,

Damian

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:

https://meapplicationdevelopers.dev.java.net/source/browse/meapplication...

So to check out all of demo box:

svn checkout \
https://meapplicationdevelopers.dev.java.net/svn/meapplicationdevelopers... \
demobox --username username

Note that the path should be

meapplicationdevelopers/demobox

*not*

meapplicationdevelopers/trunk/demobox

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

meappdev-interest@mobileandembedded.org wrote:
> No,
>
> You download a subversion client e.g. tortoisesvn (http://tortoisesvn.tigris.org/) and then checkout the demobox repository e.g.
>
> https://meapplicationdevelopers.dev.java.net/svn/meapplicationdevelopers...
>
> you will be asked for your java.net username and password.
>
> More info here:
> https://meapplicationdevelopers.dev.java.net/source/browse/meapplication...
>
> Cheers,
>
> Damian
> [Message sent by forum member 'dam1an' (dam1an)]
>
> http://forums.java.net/jive/thread.jspa?messageID=218871
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@meapplicationdevelopers.dev.java.net
> For additional commands, e-mail: interest-help@meapplicationdevelopers.dev.java.net
>
>
[terrence.barr.vcf]
---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@meapplicationdevelopers.dev.java.net
For additional commands, e-mail: interest-help@meapplicationdevelopers.dev.java.net

aastha
Offline
Joined: 2004-04-19
Points: 0

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 http://java.sun.com/javame/downloads/index.jsp 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.

Aastha

dam1an
Offline
Joined: 2007-05-21
Points: 0

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.

Damian

phil_bartholo
Offline
Joined: 2007-02-09
Points: 0

Damian,

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:

http://java.sun.com/javame/downloads/index.jsp

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.