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
Developer
Posts: 49
Registered: ‎05-06-2009
My Device: Not Specified

eclipse jde verification error

Hi all,

i've strange errors with the eclipse plugin 1.0.0.67 and 4.2.1.17 Component package.
The project compiles but won't work on simulator. During startup i got an verification error at XXX.
Seems that eclipse is not properly aligned with source code.
I've tried all way....clean, build. manual removing of the build folder... but no way.

Building project with ant + rapc (4.2.1.17) and the app is ok. app run on simulator and real devices.

Any idea? should I use JDE?

 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: eclipse jde verification error

[ Edited ]

Are you using peristent store?

 

Make sure you are using the following import directive for Persistable interface:

 

import net.rim.device.api.util.Persistable; 

 

In case you are using another import directive, for example:  import net.rim.device.api.vm.Persistable; it may be cause of the problem.

 

 

Message Edited by tbilisoft on 07-07-2009 07:43 PM
Developer
Posts: 49
Registered: ‎05-06-2009
My Device: Not Specified

Re: eclipse jde verification error

I'm not using persisten store.

 

could be related to FS sync? 

 

many thanks,

Danilo

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: eclipse jde verification error

[ Edited ]

In JDE installation package in JDE/bin folder there is preverify.exe utility.

 

Run it along with yourapp.jar file to check which class/field/method causes this problem.

 

If Eclipse does not produce jar file, download JDE and try to compile your project in JDE to check this.

 

After project compilation there are many files generated, including jar file.

 

this jar file is only for checking purposes.

 

Run preveriy with this jar file and specify full path with filename to the relevant net_rim_api.jar file (located in JDE/lib folder).

 

It will check your app compliance to the RIM API classes and will show problems.

 

 

Message Edited by tbilisoft on 07-07-2009 08:41 PM
Developer
Posts: 49
Registered: ‎05-06-2009
My Device: Not Specified

Re: eclipse jde verification error

[ Edited ]

I've just checked with preverify.exe

 

preverify.exe  -cldc1.0 -classpath "C:\opt\eclipseRIM4.2.1\plugins\net.rim.eide.componentpack4.2.1_4.2.1.17\components\lib\net_rim_api.jar" "C:\ProgettiRIM4.2.1\test\test.jar" 

 

reporting: 

 Error preverifying class java.lang.String
ERROR: floating-point arguments should not appear

 

While if i test without -cldc1.0 option :

preverify.exe -classpath "C:\opt\eclipseRIM4.2.1\plugins\net.rim.eide.componentpack4.2.1_4.2.1.17\components\lib\net_rim_api.jar" "C:\ProgettiRIM4.2.1\test\test.jar" 

 

all it's ok.

 

???

Message Edited by daniloercoli on 07-07-2009 06:26 PM
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: eclipse jde verification error

String.valueOf(float) is available even in RIM API 4.0.2

 

Try to compile your application with JDE 4.2.1

 

You can get it here: Blackberry Java Development Environment

 

I think it will work ok on the device.

Developer
Posts: 49
Registered: ‎05-06-2009
My Device: Not Specified

Re: eclipse jde verification error

I'm give it up.

 
now i'm compiling app with ant. Then copy the resulting files from rapc (*.debug, ecc ecc) into simulator folder.
Then I have linked Eclipse to the external simulator...
I can debug the code.


Very strange issue, the weird thing is that issue appeared after two months of works.

 

Many thanks tbilisoft team.

Highlighted
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: eclipse jde verification error

Are you using SVN (Source Version Control System) ?

 

If no I strongly recommend to download and use this perfect piece of software.

 

http://tortoisesvn.net/

 

 

You can track down the changes and view differences between versions and much more.