title: Portecle software converting from pem to bks - install error NoClassFoundException
body: <p>I want to use <strong>.pem</strong> format certificate and <strong>.pkey</strong> key in order to create a socket SSL in android. Unfortunately, I found at this <a href="https://stackoverflow.com/questions/11390967/how-to-use-key-and-pem-file-to-create-a-socket-ssl-in-android">post</a> that android prefers a different format, the BKS format.  As described at this <a href="https://stackoverflow.com/questions/11390967/how-to-use-key-and-pem-file-to-create-a-socket-ssl-in-android">post</a>, we can convert PEM to BKS via the <a href="http://portecle.sourceforge.net/" rel="nofollow noreferrer">Portecle</a>. </p>
  
  <p>However i cannot install Portege in Ubuntu. When  i run:</p>
  
  <pre><code>java -jar /usr/share/java/portecle.jar
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/openssl/PasswordFinder
      at java.lang.ClassLoader.defineClass1(Native Method)
  
      ...
  
      ...
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I forgot to  transfer the <strong>bcprov.jar</strong>  to the </p>
  
  <blockquote>
    <p>/usr/share/java</p>
  </blockquote>
  
  <p>folder.</p>
  
  <p>I transferred it. But now, when i  running   </p>
  
  <pre><code> java -jar /usr/share/java/portecle.jar
  </code></pre>
  
  <p>,i get:</p>
  
  <pre><code>no main manifest attribute, in /usr/share/java/portecle.jar
  </code></pre>