Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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,
Reply With Quote
  #2 (permalink)  
Old August 5th, 2010, 04:36 PM
dgh dgh is offline
Wrox Author
Points: 864, Level: 11
Points: 864, Level: 11 Points: 864, Level: 11 Points: 864, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
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
Reply With Quote
  #3 (permalink)  
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,
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.