Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bouncy Castle package doesn't exist

 
Rz Azdy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have jdk1.6, jre1.6, and netbeans 6.5, and bouncy castle lcrypto-j2me-143.zip

I try to add the bouncy castle API and it works fine until i try to make a new object with it.
MD5Digest md = new MD5Digest(); ---> here it still works fine
md.getAlgorithmName(); ----------------> here it said that package md does not exist, <identifier> expected

i get the getAlgorithmName by the netbeans' completion code, and i have also imported the org.bouncycastle.crypto.digests.MD5Digest;
so what is the problem?

ps: i also have set the obfuscating's property of my project to high but still doesn't change anything.
 
Rz Azdy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, i found the solution already.
Incase someone has the same problem, it must be put inside a block or a method, and it works now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic