title: iText/BouncyCastle ClassNotFound org.bouncycastle.asn1.DEREncodable and org.bouncycastle.tsp.TimeStampTokenInfo
body: <p>I'm trying to use <a href="http://itextpdf.com/" rel="noreferrer">iText</a> Java.
  When you run the example "<a href="http://itextpdf.sourceforge.net/howtosign.html#howtosign" rel="noreferrer">how to sign</a>" the following error occurs:</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: org.bouncycastle.tsp.TimeStampTokenInfo
  </code></pre>
  
  <p>According <a href="http://cfsearching.blogspot.com.br/2007/12/getting-started-with-itext-how-to-sign.html" rel="noreferrer">"Getting Started with iText - How to sign a PDF using iText"</a>, I have to use the <a href="http://www.bouncycastle.org/latest_releases.html" rel="noreferrer">BouncyCastle</a>.</p>
  
  <p>I downloaded the file: bcprov-jdk15on-147.jar from <a href="http://www.bouncycastle.org/latest_releases.html" rel="noreferrer">BouncyCastle download page.</a> <br/>
  And added to the project: Java Build Path/Libraries/Add External JARs...</p>
  
  <p>I added the following line: </p>
  
  <pre><code>Security.addProvider(new BouncyCastleProvider());
  </code></pre>
  
  <p>When you run the example the same error occurs.<br/>
  So I downloaded another file: bcpkix-jdk15on-147.jar entitled "PKIX/CMS/EAC/PKCS/OCSP/TSP/OPENSSL" <br/>
  And added to the project: Java Build Path/Libraries/Add External JARs...<br/>
  Now I have two Jars.</p>
  
  <p>When you run the example the following error occurs:</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: org.bouncycastle.asn1.DEREncodable
  </code></pre>
  
  <p>I tried downloading the file "bcprov-ext-jdk15on-147.jar" but did not solve the problem.</p>
  
  <p>I am using iText 5.2.1 and eclipse on Windows 7 64 bits.</p>