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 java.security file by adding security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider 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
Joined: Apr 20, 2000
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
Joined: May 30, 2003
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 certificate...is there some other way without using keytool?
Joined: Jul 28, 2002
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!