Meaningless Drivel is fun!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39535
    
  27
CLASSPATH needs to point to the jar file itself, not the directory it's in.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to access BouncyCastle jar from Application jar
 
Similar Threads
Creating jar files with Netbeans
PlZZZZZZ How to call external ejb jar in J2EE Project
Packaging 3rd party .jars
Resource Jar's
How to call external ejb jar in J2EE Project