Skip to main content

which bounczcastle lib?

4 replies [Last post]
michaelvogt
Offline
Joined: 2007-08-20

Hello everybody.

I just checked out the sources from trunk with svn. I can compile it ok with the terminal.

But when I open the project with NetBeans, the problem I is, that the org.bouncycastle classes are not found. I copied all the jars available from http://www.bouncycastle.org/latest_releases.html and added them to the classpath in the properties of the project.

So, what does it need to get the project compiled with NetBeans?

Thanks for your help,
Michael Vogt

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jaya_h
Offline
Joined: 2005-07-11

Hi Michael,

If you are able to compile successfully on a terminal, it should go fine on netbeans as well.
If you could let us know at what stage of compilation you see these errors that would help.

The build scripts in hdcookbook have the bouncy castle provider name hard coded as below:
${HDCOOKBOOK_HOME}/tools/security/resource/bcprov-jdk15-137.jar

Thanks,
Jaya

michaelvogt
Offline
Joined: 2007-08-20

Hello Jaya.

Thanks for your answer.

Looks like, I didn't ask the question correctly, sorry.

What I meant was, when I open the hdcookbook project in NetBeans, it does not pick up the security classes, so all bouncycastle imports show "... does not exist" errors. The jar file you mentioned is added directly to the classpath of the project in the properties dialog. This is with NetBeans 6.0.1 and 6.1.

Works correctly in IntelliJ IDEA.

Thanks,
Michael Vogt

chihiro_saito
Offline
Joined: 2006-11-08

Hi Michael,

Please try opening hdcookbook's tools/security subdirectory as a netbeans project, and add bouncycastle jar in the classpath there. That did a trick for me. (Wonder if it's a bug related to a project containing another project).

Thanks,
Chihiro

michaelvogt
Offline
Joined: 2007-08-20

Hello Chihiro.

Sorry for the slow answer. Currently, I am not using NetBeans much.

I opened the security project separately in NetBeans, as you suggested. You are correct, the bouncycastle classes are correctly recognized that way.

Cheers,
Michael