wood burning stoves 2.0*
The moose likes Security and the fly likes Not able to access BouncyCastle jar from Application jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Not able to access BouncyCastle jar from Application jar" Watch "Not able to access BouncyCastle jar from Application jar" New topic
Author

Not able to access BouncyCastle jar from Application jar

Shah Jenish
Greenhorn

Joined: Feb 19, 2009
Posts: 13
Hello All,

I have made jar file for my application. One of the class of my application uses BouncyCastleProvider class of BC jar.

I have created one folder "lib" in the same parent folder where my application jar is residing.

I have changed my machine CLASSPATH to point to this new lib folder. But when I run my application it gives me classnotfound exception.

But if I copy this BC jar file to my jre/lib/ext then everything works fine.

Can anybody tell me what I need to do to access BC jar file from my lib directory?

Thanks in Advance,
Jenish
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41114
    
  45
CLASSPATH needs to point to the jar file itself, not the directory it's in.


Ping & DNS - my free Android networking tools app
 
 
subject: Not able to access BouncyCastle jar from Application jar
 
Similar Threads
Packaging 3rd party .jars
Resource Jar's
How to call external ejb jar in J2EE Project
Creating jar files with Netbeans
PlZZZZZZ How to call external ejb jar in J2EE Project