title: Keytool is not recognized as an internal or external command
body: <p>I am trying to discover the list of trusted authorities in my Java Runtime using <a href="http://www.coldfusionmuse.com/index.cfm/2005/01/29/keystore" rel="noreferrer">the instructions in this article</a>. When I typed the command below:</p>
  
  <pre><code>C:\ColdFusion8\runtime\jre\lib&gt;keytool -list -storepass changeit -noprompt -keystore
  </code></pre>
  
  <p>I got the following error:</p>
  
  <blockquote>
    <p>'keytool' is not recognized as an internal or external command, operable program or batch file.</p>
  </blockquote>
  
  <p>I checked that the directory containing my keytool executable is in the path. 
  (On my Windows 7 machine, it's in <code>C:\Program Files (x86)\Java\jre6\bin</code>) 
  Despite this, the command line will not recognise the <code>keytool</code> command.</p>
  
  <p>I'm assuming that there are two separated commands mentioned in the doc:</p>
  
  <ol>
  <li><p><code>C:\CFusionMX\runtime\jre\lib&gt;keytool -list -storepass changeit -noprompt -keystore</code></p></li>
  <li><p><code>C:\CFusionMX\runtime\jre\lib\security\cacerts</code></p></li>
  </ol>
  
  <p><strong>EDIT:</strong></p>
  
  <p>By the way can I use the following process instead of complex steps mentioned in the answer?</p>
  
  <ol>
  <li>When I opened the WSDL into my browser, I saw the Lock icon, when I clicked on it a "Certificate" window opened</li>
  <li><p>Then I clicked on "Install Certificate" option</p></li>
  <li><p>A Certificate Import Wizard window opened, I clicked on Next I saw two options</p>
  
  <ul>
  <li>a) Automatically select the certificate store based on the type of certificate (this option was selected automatically)</li>
  <li>b) Place all certificates in the following store</li>
  </ul></li>
  </ol>
  
  <p>I decided to select option <code>(b)</code>, but I'm confused which certificate store I should select here.</p>