File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes using bouncy castle jce provider?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "using bouncy castle jce provider??" Watch "using bouncy castle jce provider??" New topic

using bouncy castle jce provider??

hugo anderson

Joined: May 30, 2003
Posts: 2
Hello All
I am new to java.
I want to use bouncy castle jce provider.
I have copied the bcprov-jdk14-118.jar file in home\lib\ext and also updated the file by adding
I am using jdk1.4.0_01 in win2k.
While running it says:
Exception in thread "main" java.lang.NoClassDefFoundError: Filename .....
plz help
thanks in advance
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Did you put it in lib/ext of the JRE? And I assume you are aware that JDK 1.4.1 ships with a fairly complete JCE provider.
- Peter
hugo anderson

Joined: May 30, 2003
Posts: 2
Thanks peter for replying but I have already tried what you told.
I even tried by putting the jar file in both (jsdk\jre\lib\ext and also in programs\java\jre\lib\ext) and is still not working.
Plz help.
Also I am aware that SUNJce is quite sufficient but I want to use BC for generating self signed there some other way without using keytool?
Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
I know you posted this a while ago, but if you're still interested... You can do all this (and more!) programmatically. I have some sample code below:

Now if you also want to verify a signed jar file (say one that you signed with that certificate from before), then my code below will help with that. Hope this helps someone!
I agree. Here's the link:
subject: using bouncy castle jce provider??
It's not a secret anymore!