10-17-2008 11:17 AM
I have a problem deplying a Midlet to a BlackBerry.
I´m using Netbeans Mobility Pack 6.1, I used the SVG components from the package org.netbeans.microedition.svg.
I compile the app in Netbeans and it builds the .jar and .jad correctly.
Then, I created a project with BlackBerry JDK 4.2 and build the .COD file for the midlet, (I changed the type of project from CLDC to Midlet)
I got this 2 message error when building in BBJDK:
SVGSplashScreen.java: Warning!: verification failed at opcode offset: 20 cause: found SVGSplashScreen$SplashScreenSvgEventListener where SVGEventListener is required invoking org.netbeans.microedition.svg.SVGPlayer.setSVGEven
tListener(SVGEventListener) in <init> and SVGWaitScreen.java: Warning!: verification failed at opcode offset: 11 cause: found SVGWaitScreen$WaitScreenSvgEventListener where SVGEventListener is required invoking org.netbeans.microedition.svg.SVGPlayer.setSVGEven tListener(SVGEventListener) in <init>
When I run the app in the BB, It says:
Error starting APP: Module "APP" has a verification error 2870 at offset 15cc
Anyone knows how to fix it?
Thanks in advance!
10-17-2008 01:55 PM
Version 4.6.0 of the BlackBerry API set has native support for JSR 226 for SVG rendering. You could make use of it instead of the netbeans library.
If you need to use the netbeans library I recommend verifying that this library supports BlackBerry devices.
10-17-2008 02:09 PM
I´m using BB JDE 4.2 because ours BB has OS 4.2 and Telcel (Mexican Carrier) will not update it to 4.6 for a while...
So, 4.2 doesn´t support SVG? I posted the issue as as bug in the Netbeans Community and in the mobile developer mailing lists. I have no documentation if org.netbeans.microedition.svg can works in the BB, I´ll research a little more.
I used the Netbeans SVG because of the graphic designer, just drag and drop and draw the flow and workes fine. If it doesn´t works, Ihave to rewrite it all manually.
11-17-2008 10:52 AM
I´m also using Netbeans Mobility Pack 6.1, I used the SVG components from the package org.netbeans.microedition.svg and JSR apis javax.microedition.m2g.*. I compile the app in Netbeans and it builds the .jar and .jad correctly and works fine in sun's simulator. Then, I downloaded BlackBerry JDE4.5 and followed netbeans instructions to use this environment in netbeans. At the time of building I get the following error:
Preverifying 1172 file(s) into C:\netbeans\pimsvg\build\preverified directory.
Error preverifying class javax.microedition.m2g.ScalableGraphics
VERIFIER ERROR javax/microedition/m2g/ScalableGraphics.render(IIL
Cannot find class com/sun/perseus/model/Viewport
C:\netbeans\pimsvg\nbproject\build-impl.xml:431: Preverification failed with error code 1.
BUILD FAILED (total time: 14 seconds)
I suspect that JDE4.5 does not support JSR 226, SVG. What surprises me is that SVG website says that this spec is quite old and millions of phones supports SVG. My main aim is to run my application in the blackberry simulator and not to worry about the acutal device.
I would really appreiciate if you can tell me which version of JDE and simulator supports SVG so that I can download them.
03-06-2009 01:11 AM
This is a bit of an old post, but I have managed to get the netbeans svg library working (or at least the parts I need).
I found that the source files for these classes are included in the netbeans mobility folder, i created a seperate library project for these,then added in all the source files I need, compiled it in the JDE 18.104.22.168 and made my main project depend on this.
The only thing that gave me any trouble was that my SVG's had x="0" y="0" defined in the <svg version= tag which I had to take out to get to work in the BB simulator