[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trying to compile a package that depends on bouncycastle



Hi Emmanuel,

On Sunday 13 Jul 2014 19:10:30 Emmanuel Bourg wrote:
> Installing the package is not enough, you have to specify the libraries
> used when running javac. For example:
> 
>   javac -cp /usr/share/java/bcprov.jar:/usr/share/java/bcpkix.jar
> DumpPublicKey.java

Ah, right. That did it! Thanks.

Sorry, for some reason I thought that "import" in java worked as the 
equivalent of a "#include <header>" and a "-llibrary", and that dependencies 
were findable in the filesystem by their import name, so it would all "just 
work".

Don't know where I got that from.

Anyway, so that I don't have to ask the list next time, could someone point me 
to a basic tutorial for this, so I can figure out for myself the mapping from, 
e.g. "org.bouncycastle.jce.provider.BouncyCastleProvider" to 
"/usr/share/java/bcprov.jar:/usr/share/java/bcpkix.jar"

(Is there a java equivalent of pkg-config that will do it for me?)


Thanks again,

Adam


Reply to: