Wrox Programmer Forums
|
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 5th, 2010, 10:23 AM
Registered User
 
Join Date: Aug 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ask about Bouncy Castle provider

Hi,
I have problem but can not solve it.
My java is jdk1.6.
I finished examples in chapter 1. That mean now, I have bcprov-jdk16-145.jar in the C:\jdk1.6.0_20\jre\lib\ext, I also download Unlimited Strength Jurisdiction Policy Files and put it into C:\jdk1.6.0_20\jre\lib\ext.
I also modify java.security to add : security.provider.N=org.bouncycastle.jce.provider. BouncyCastleProvider
But when I put the code of chapter 5, eclipse has error :" Access restriction: The type ASN1InputStream is not accessible due to restriction on required library C:\jdk1.6.0_20\jre\lib\ext\bcprov-jdk16-145.jar"
For every class of Bouncy Castle have the same error.
Could you help me?

Thanks and Regards,
Lan,
 
Old August 5th, 2010, 04:36 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Difficult to say. It sounds like the most likely cause is that the BC classes are appearing twice in your class path - is the ext area the only one in which the BC classes appear?

Regards,

David
 
Old August 5th, 2010, 08:09 PM
Registered User
 
Join Date: Aug 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Found solution

Hi,
Thank for your reply but I found the solution for it. It is from Eclipse.
This is the thread I found for the solution http://stackoverflow.com/questions/8...library-rt-jar


Regards,





Similar Threads
Thread Thread Starter Forum Replies Last Post
membership provider davyquyo ASP.NET 2.0 Basics 0 January 1st, 2007 04:52 AM
Membership Provider bmains ASP.NET 2.0 Basics 4 April 13th, 2006 04:10 PM
msdasql.1 as a provider LiQUiD VB Databases Basics 2 February 9th, 2005 09:06 AM
Provider not found wwwdirzala Access 1 April 19th, 2004 02:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.