Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install or import Bouncy Castle Cryptography API for Java; ZIP has no .class files; using netbeans ide

I'm having some difficulty installing Bouncy Castle for Java (installing is probably not the correct term, here, I understand that).

I navigated to their webiste, here, and downloaded version 1.6 of the lightweight API, as a ZIP file. I extracted it to my Windows XP SP2 machine and expected it to be easy but it's not. I attached it as a library to my NetBeans IDE project and quickly discovered that there are no .class files in this ZIP file. I mean, I can only import .class files to my project, correct? How do I 'install' Bouncy Castle? Do I have to compile every .java file. If so, how do I go about it?

Thank you.

like image 234
user717236 Avatar asked Dec 22 '22 06:12

user717236


2 Answers

There is a .jar file here, just download the .jar file and add it to your classpath, and you should be able to use the API.

like image 132
Reid Mac Avatar answered Dec 24 '22 02:12

Reid Mac


Maybe you downloaded the "Sources & Docs" package accidentially. Try the section "Signed Jar Files" on their site.

like image 25
tobiasbayer Avatar answered Dec 24 '22 03:12

tobiasbayer