Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
|
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 April 9th, 2007, 11:44 AM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap 6- having problem with X509V1 create Example

Hi,
 I am new to this JCE. I do not know which package is to use from bouncycaste.

Following are the errors that I am getting:

E:\Programming\Java>javac X509V1CreateExample.java
X509V1CreateExample.java:10: package org.bouncycastle.x509 does not exist
import org.bouncycastle.x509.X509V1CertificateGenerator;
                             ^
X509V1CreateExample.java:22: cannot find symbol
symbol : class X509V1CertificateGenerator
location: class X509V1CreateExample
        X509V1CertificateGenerator certGen = new X509V1CertificateGenerator();
        ^
X509V1CreateExample.java:22: cannot find symbol
symbol : class X509V1CertificateGenerator
location: class X509V1CreateExample
        X509V1CertificateGenerator certGen = new X509V1CertificateGenerator();
                                                  ^
X509V1CreateExample.java:40: cannot find symbol
symbol : variable Utils
location: class X509V1CreateExample
        KeyPair pair = Utils.generateRSAKeyPair();
                                ^
4 errors

Can give me brienf which file to use or include so I don't get above errors.

THanks.

Now I am getting this Error, please help in this:

E:\Programming\Java>javac X509V1CreateExample.java
X509V1CreateExample.java:40: cannot find symbol
symbol : variable Utils
location: class X509V1CreateExample
        KeyPair pair = Utils.generateRSAKeyPair();
                                ^
Note: X509V1CreateExample.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error


thnaks,
harmit.
 
Old April 9th, 2007, 06:54 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

The first error indicates the Bouncy Castle provider is not correctly installed - you might want to check your setup against the instructions in chapter 1.

The second error indicates that the example classes for the book are not in your classpath. If you haven't you can download them from:

http://www.wiley.com/WileyCDA/WileyT...-DOWNLOAD.html

You need to have these compiled and in your classpath if you are going to use the Utils classes.

Regards,

David

 
Old April 10th, 2007, 08:26 PM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks.










Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of X509V1/V3 create Example .? harmit7 BOOK: Beginning Cryptography with Java 1 April 10th, 2007 08:43 PM
Chap 4 Unable to create user in SQL Exprs VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 January 23rd, 2006 12:10 PM
chap 2......login problem jccheah BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 8 June 17th, 2005 03:05 AM
create procedure in chap 4 ghfinn BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 June 15th, 2004 08:09 AM
problem in chap 11 joeore BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 January 30th, 2004 04:38 PM





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