I am confuse where add jar file (bcprov-jdk15-145.jar) for adding security file for BouncyCastleProvider. In application library or In JRE jre6\lib\ext\ folder.
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unless you have a specific reason for adding a JAR file to the JRE’s
lib/extdirectory don’t put anything in there. This directory is for Installed Extensions, not just dependencies of your application.Just add the
bcprov-jdk15-145.jarfile to the Classpath of your application.