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
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "BouncyCastle Obfuscation and Javame" Watch "BouncyCastle Obfuscation and Javame" New topic

BouncyCastle Obfuscation and Javame

Andres Gorzelany

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

I am trying to test 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 ( 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?

rohit leeta
Ranch Hand

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

<a href="" target="_blank" rel="nofollow">Java Forums</a>
I agree. Here's the link:
subject: BouncyCastle Obfuscation and Javame