title: java.lang.NoClassDefFoundError with two BouncyCastle jars
body: <p>I have included 2 BC jars into my project: <em>bcpkix-jdk15on-1.47.jar</em> and <em>bcprov-jdk15on-157.jar</em>.</p>
  
  <p>As the first line in code I have added:</p>
  
  <pre><code>Security.addProvider(new BouncyCastleProvider());  
  </code></pre>
  
  <p>Exception occurs on the line:</p>
  
  <pre><code>JcaPKCS10CertificationRequest csrNew = new JcaPKCS10CertificationRequest(request);
  
  By the way it is imported: import org.bouncycastle.pkcs.jcajce.JcaPKCS10CertificationRequest; 
  </code></pre>
  
  <p>But I am still getting :</p>
  
  <blockquote>
    <p>Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/bouncycastle/jcajce/JcaJceHelper
        at implementation.Util.generateCSR(Util.java:396)</p>
  </blockquote>
  
  <p>NetBeans found class regularly, but when I run project exception happens.</p>
  
  <p>Is there any way how could I regularly include both of these two BouncyCastle jars?</p>