title: Running Tomcat server with SSL certificate triggers could not find or load main class cert.pkcs12
body: <p>I've been following this guide to setup SSL certificate on my Tomcat server. 
  <a href="https://docs.oracle.com/cd/E29585_01/PlatformServices.61x/security/src/tsec_ssl_jsp_pkcs12.html" rel="nofollow">https://docs.oracle.com/cd/E29585_01/PlatformServices.61x/security/src/tsec_ssl_jsp_pkcs12.html</a></p>
  
  <p>When I try to run the .bat file with there mentioned parameters (with my pwd):</p>
  
  <pre><code>-Djavax.net.ssl.keyStoreType=PKCS12 
  -Djavax.net.ssl.keyStore=%CLIENT_CERT% 
  -Djavax.net.ssl.keyStorePassword=endeca 
  -Djavax.net.ssl.trustStore=%CLIENT_CERT% 
  -Djavax.net.ssl.trustStorePassword=endeca
  </code></pre>
  
  <p>I get this error at the startup:</p>
  
  <pre><code>Error: Could not find or load main class Files\Java\jre7\lib\security\cert.pkcs12
  </code></pre>
  
  <p>Any idea what am I doing wrong?</p>