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 June 1st, 2007, 07:12 PM
Registered User
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem on Utils.java of chapter7

Hello,
I got the following error when I run Utils.java of chapter7.
Would you help me to fix this problem?

root@jim-laptop:/home/jim/Desktop/testCode# javac chapter7/Utils.java
./chapter7/Utils.java:27: cannot access org.bouncycastle.asn1.x509.V1TBSCertificateGenerat or
bad class file: /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ext/bcprov-jdk16-136.jar(org/bouncycastle/asn1/x509/V1TBSCertificateGenerator.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
            V1TBSCertificateGenerator certGen = new V1TBSCertificateGenerator();
            ^
1 error


 
Old June 1st, 2007, 07:37 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

I'm not sure what's happening, but you would normally only see this message if you were trying to use a JDK 1.5 javac with a JDK 1.6 jar. You might want to check your environment.

Regards,

David

 
Old June 2nd, 2007, 12:55 AM
Registered User
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks ! David, the problem is fixed !






Similar Threads
Thread Thread Starter Forum Replies Last Post
String Utils to search all words in filenames sbc789 JSP Basics 1 December 7th, 2008 10:39 PM
java problem p0120144 Java Basics 3 September 26th, 2006 12:10 PM
database problem[java] sunanda_chowdary Java Databases 0 February 21st, 2006 04:00 AM
Java code problem Loevet J2EE 5 October 23rd, 2003 08:42 AM





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