File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BouncyCastle Obfuscation and Javame

 
Andres Gorzelany
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic