aspose file tools*
The moose likes Java Micro Edition and the fly likes BouncyCastle Obfuscation and Javame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "BouncyCastle Obfuscation and Javame" Watch "BouncyCastle Obfuscation and Javame" New topic
Author

BouncyCastle Obfuscation and Javame

Andres Gorzelany
Greenhorn

Joined: Aug 29, 2005
Posts: 13
Hi all !

I am trying to test midptest.java midlet included in BouncyCastle distribution, I tried with Eclipse (EclipseME) and Netbeans (Mobility Pack) with the same result, I get this trying to execute the app:

NoClassDefFoundError org/bouncycastle/crypto/BlockCipher

Even that I am adding the jar file to the project (bcprov-jdk16-136.zip) and Checking it at Order/Export so it is "uploaded" to the emulator.

I read at Bouncy Castle Faq, that if I receive such an error is because of obfuscation levels (ProGuard), I am currently using default ones along with:

-dontoptimize -overloadaggressively

What do you think is wrong here ? Maybe some more option to ProGuard?

Thanks!
rohit leeta
Ranch Hand

Joined: May 02, 2007
Posts: 49
This might help. Check the last paragraph.

http://www.java-tips.org/java-me-tips/midp/encrypting-decrypting-text-messages-with-bouncy-castle-crypt-3.html


<a href="http://www.java-forums.org" target="_blank" rel="nofollow">Java Forums</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: BouncyCastle Obfuscation and Javame