title: Keytool thinks cacerts doesn't exist
body: <p>I'm using OpenJDK 8 (downloaded and unzipped from <a href="https://jdk.java.net/java-se-ri/8" rel="nofollow noreferrer">https://jdk.java.net/java-se-ri/8</a>, added to PATH), and I'm running into certificate errors. </p>
  
  <p>Upon investigation, I realized there is a problem with cacerts. </p>
  
  <p>Running <code>keytool -list -keystore cacerts</code> returns an error: <code>keytool error: java.lang.Exception: Keystore file does not exist: cacerts</code>,</p>
  
  <p>but running <code>keytool -list -keystore "C:\development\exec\cmd\jdk8\jre\lib\security\cacerts"</code> </p>
  
  <p>gets me a list of actual certificates. <code>JAVA_HOME</code> does point to </p>
  
  <p><code>C:\development\exec\cmd\jdk8</code> and <code>PATH</code> does have an entry <code>%JAVA_HOME%\bin</code>. How should I configure java to look in the right place for cacerts?</p>
  
  <p><code>java -version</code> returns the following:</p>
  
  <pre><code>openjdk version "1.8.0_40"
  OpenJDK Runtime Environment (build 1.8.0_40-b25)
  OpenJDK Client VM (build 25.40-b25, mixed mode)
  </code></pre>