Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to set up BouncyCastle

I’m having some trouble setting up bouncycastle.

I’ve downloaded the jar, put it in Java\jre1.8.0_271\lib\ext, added it to java.security in the providers list and added it to the classpath.

When trying import org.bouncycastle... I get the message ‘bouncycastle cannot be resolved’

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I have also tried Security.addProvider(new org.bouncycastle.jce.provider.BouncyCasytleProvider()); but get the same error.

What am I doing wrong?

>Solution :

It also has to be in your class path.

If you’re compiling building from command line use the -cp parameter and the lib/ext folder of the JRE.

If you’re building in an IDE there is usually somewhere in the menus that lets you add folders to the class path. In IntelliJ it is in File-->Project Structure-->Modules and press the + sign.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading