Ondrej Tokar Ondrej Tokar - 1 year ago 137
Java Question

Running Tomcat server with SSL certificate triggers could not find or load main class cert.pkcs12

I've been following this guide to setup SSL certificate on my Tomcat server.

When I try to run the .bat file with there mentioned parameters (with my pwd):


I get this error at the startup:

Error: Could not find or load main class Files\Java\jre7\lib\security\cert.pkcs12

Any idea what am I doing wrong?

Answer Source

The issue is caused by the space in java installation path C:\Program Files\Java. Install java into a path without spaces will resolve the issue.


Add quotes around the path solve also the issue. Thanks @Ondrej

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download