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.
posted 8 years ago
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.