Author

Topic: Bouncy Castle help for a N00b :) (Read 1554 times)

newbie
Activity: 1
Merit: 0
March 25, 2024, 07:44:37 AM
#2
Sure thing! Setting up Java for cryptography can be a bit daunting, but I've got your back. First, make sure you've downloaded Bouncy Castle and added it to your classpath. When compiling and running your Java file, include the Bouncy Castle JAR files using the -cp option with javac and java commands. Double-check that any classes or packages referenced in your code are also in the classpath. With these steps, you should be good to go! If you hit any snags, just give me a shout at https://exchangedesk.ae ExchangeDesk. Happy coding!
newbie
Activity: 42
Merit: 0
February 24, 2011, 04:27:51 AM
#1
So I have lots of programming experience in python and C/C++ and every other language except only a little in java Smiley

I downloaded bouncy castle and untared it, stuck the provider libraries in the appropriate directores and updated the java.security files.

I can build a simple Hello World .java app and run it, but I don't know how to setup the class paths etc... to build an app that includes other libraries.

Can someone help me build and test one of the test/example jar files?  I'm kind of clueless about java, so I don't know how to setup the paths for building apps that use the bouncy castle packages.

Help compiling crypto-146/test/src/org/bouncycastle/crypto/test/ECTest.java would be awesome!  I'm on Mac OSX and I think I can compile it fine using
javac ECTest.java

When executing java ECTest.class I get "Exception in thread "main" java.lang.NoClassDefFoundError: ECTest/class"

which I think is because it can't find SimpleTest, which that class extends.  I'm not sure how to make java find those classes/packages that this class depends on Smiley

Any help greatly appreciated Smiley
Jump to: