Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: JollyGreen on February 24, 2011, 08:27:51 AM



Title: Bouncy Castle help for a N00b :)
Post by: JollyGreen on February 24, 2011, 08:27:51 AM
So I have lots of programming experience in python and C/C++ and every other language except only a little in java :)

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 :)

Any help greatly appreciated :)