The example program frompart3.chapter12.EncryptionPdf
says it needs the Bouncy Castle encryption package bcprov-jdk15on-146.jar Bouncy Castle only offers the latest
release bcprov-jdk15on-147.jar The example fails with java.lang.NoClassDefFoundError:
The bcprov jar has DEREncodableVector
but no DEREncodable class.
Is this a problem only with the 1.47
jar? I can't find an older jar to see if it had the DEREncodable class
Spatial Information Infrastructure Information Services Branch Department of Sustainability and Environment
Notice: This email and any attachments may contain information that is
personal, confidential, legally privileged and/or copyright. No part of it
should be reproduced, adapted or communicated without the prior written consent
of the copyright owner.
It is the responsibility of the recipient to check for and remove
If you have received this email in error, please notify the sender by return
email, delete it from your system and destroy any copies. You are not authorised
to use, communicate or rely on the information contained in this email.
Please consider the environment before printing this email.
Is this a problem
only with the 1.47
jar? I can't find an older jar to see if it had the DEREncodable
iText 5.2.1 needs BouncyCastle 1.46.
The API of BouncyCastle has COMPLETELY changed between BC 1.46 and
That's why you're experiencing the problem you mention.
The iText version in the SVN trunk has already been updated to BC
So either you wait for the next iText release (somewhere in June),
or you use the iText version that is currently in the SVN trunk.