Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 103
Registered: ‎05-05-2009
My Device: Not Specified

How to find class which has verification error

I try to port an application from midlet to uiapplication. my project has too much class(about 200 and also inner class). I use eclipse. I always get verification error (bbproject has verification error 1756 at offset 9318). but, if I run same project on JDE, it works. And, I make a simple project in eclipse, it also works. so, there is something causes problem in m project. and, JDE can handle it but eclipse. JDE is a hard platform to coding. I want to use eclipse.

 do you know a tool that can show which class makes verification error. 

 

 

note: I decompile JDE's jar and eclipse's jar, they are different code sample. they build java file different.  

New Developer
New Developer
Posts: 151
Registered: ‎01-05-2010
My Device: dev alpha c (bb10)
My Carrier: www.rzr.online.fr

Re: How to find class which has verification error

New Developer
Posts: 103
Registered: ‎05-05-2009
My Device: Not Specified

Re: How to find class which has verification error

I resolved problem. I'm not sure, but I think it is about inner class. I removed some inner class, then problem never occured
Highlighted
New Developer
New Developer
Posts: 151
Registered: ‎01-05-2010
My Device: dev alpha c (bb10)
My Carrier: www.rzr.online.fr

Re: How to find class which has verification error

Donno if it helps or not, but i am facing a similar issue (see trace later) on eclipse while it's working on JDE ...

 

Is this a bytecode version issue ? if yes which one should be set ?

 

 

=== eclipse jde trace ===

 

Packaging project ...
C:\opt\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.14\components\bin\rapc.exe -quiet codename=deliverables\5.0.0\... -midlet -sourceroot=Z:\src\...\...\src;Z:\src\...\gen;Z:\src\...\src;Z:\src\...\res -import=C:\opt\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.14\components\lib\net_rim_api.jar Z:\src\....\bin
Error preverifying class ...
    VERIFIER ERROR ....<clinit>()V:
Illegal type in constant pool
Error!: Error: preverifier failed: C:\opt\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.14\components\bin\preverify.exe -d C:\DO ...
Packaging project ... failed (took 0.672 seconds)