This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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>
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: BouncyCastle Obfuscation and Javame
 
It's not a secret anymore!