BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-10-2009, 04:26 AM   #1 (permalink)
New Member
 
Join Date: May 2008
Model: 7100T
PIN: N/A
Carrier: Airtel
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Preverification Error for BouncyCastle cldc_classes.zip

Please Login to Remove!

Hi All,
Firstly, here are my platform details:-

1) JDE Version: 4.1.0
2) Dev Env: Eclipse JDE plugin, component version 4.3.0
3) BouncyCastle API version: 144 (Latest available)
4) Application Type: MIDlet, MIDP 2.0 CLDC 1.1

I have a MIDP application that uses crypto functionality of BouncyCastle API. I have included the cldc_classes.zip in the build path of the MIDlet project and have done "Order And Export". However, when the rapc command is executed on it, it gives the following error:-

rror preverifying class com.csam.test.TestAppMidlet
VERIFIER ERROR com/csam/test/TestAppMidlet.startApp()V:
Cannot find class org/bouncycastle/crypto/CipherParameters
Error!: Error: preverifier failed: C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\bin\preverify.exe -d C:\DOCUME~1\parth\LOCAL


I do not know what is going wrong and where. Why is JDE not able to pre-verify these classes?
Offline  
Old 11-10-2009, 04:39 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

first you don't need JDE if you use Eclipse + component packages.
I don't know about BouncyCastle but your should try to extract the zip and reference the jar files inside. Also try to preverify the jars manually
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
Offline  
Old 11-10-2009, 12:52 PM   #3 (permalink)
New Member
 
Join Date: May 2008
Model: 7100T
PIN: N/A
Carrier: Airtel
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you.

I shall try to pre-verify manually. However, the zip directly contains the class files, which is quite strange!. I still cannot get around trying to figure out why BC has provided a zip instead of a JAR. I tried to re-package all class files into a JAR, yet I could not achieve success.
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.