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 October 4th, 2011, 02:48 AM
Registered User
 
Join Date: Oct 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default problem in Installing BC in jdk

hi,
i have jdk1.6.0_27 on windows 7 system. In order to install BC i have placed jar file bcprov-jdk16-146.jar in c:\program files\java\jdk1.6.0_27\jre\lib\ext and also in c:\program files\java\jre6\lib\ext folder. Further, i have added the provider in java.security file of both jdk1.6.0_27 and jre6 by adding the following line after all the other providers mentioned in file.

security.provider.9=org.bouncycastle.jce.provider. BouncyCastleProvider

i have also replaced my policy files with the unrestricted one which is recognized by my system when run program SimplePolicyTest.java from the book but when i execute SimpleProviderTest.java from book, it gives the output

BC provider not installed.


I am not able to figure out where m i doing wrong. please help me

regards
sanskriti

Last edited by sanskriti; October 4th, 2011 at 02:50 AM..
 
Old October 5th, 2011, 12:57 AM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

It's probably not something you are doing wrong so much, as it's more likely that the version of Java you're running is not the one you've updated. It certainly sounds like you have done everything correctly, I'd check it with java -version before going further though.

Regards,

David
The Following User Says Thank You to dgh For This Useful Post:
sanskriti (October 6th, 2011)
 
Old October 7th, 2011, 12:39 AM
Registered User
 
Join Date: Oct 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default which java version suitable for BC

HI,
Please tell which jdk version is suitable for BC .I have tried the same process with jdk 7 also and have the same problem as in jdk1.6.0_27.

Regards
Sanskriti
 
Old October 7th, 2011, 12:57 AM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

There are versions of BC for every version of Java from 1.1. The 1.6 release will work with JDK 1.7.

As I said before it sounds like you've followed the process, but you need to check the JVM you're running is the one the provider is installed in. Likewise you need to make sure the jar file is properly installed in the ext area. Multiple jars with the same packages can sometimes cause this to happen as well.

Regards,

David





Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing the Unrestricted Policy Files and BC provider mahdy_m_s BOOK: Beginning Cryptography with Java 5 July 3rd, 2011 01:35 AM
Installing the BC provider? boy18nj BOOK: Beginning Cryptography with Java 3 July 2nd, 2011 01:32 AM
Apache, Axis and JDK for web service problem solomon_13000 Apache Tomcat 0 August 26th, 2005 08:16 AM
JDK 1.5 Setup Problem treehh JSP Basics 1 June 22nd, 2005 11:24 PM
Having Problem with Tomcat and/or JDK evenpar JSP Basics 5 July 29th, 2004 10:24 AM





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