title: Why does regedit give different results from reg query?
body: <p>I have jdk 1.6 installed on my machine and have a discrepancy between regedit and reg query.  From regedit I have the following key:</p>
  
  <pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
  </code></pre>
  
  <p>but if I try</p>
  
  <pre><code>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit"
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>ERROR: The system was unable to find the specified registry key or value.
  </code></pre>
  
  <p>From regedit <code>HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft</code> has the following children:</p>
  
  <pre><code>Java Development Kit
  Java Plug-in
  Java Runtime Environment
  Java Wb Start
  Prefs
  </code></pre>
  
  <p>But <code>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft"</code> has the following results:</p>
  
  <pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Auto Update
  HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in
  HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
  HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update
  HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start
  HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs
  </code></pre>
  
  <p>So there are keys missing from regedit that show up in reg query and others that are missing from reg query that show up in regedit.</p>
  
  <p>Any ideas why these could be different?</p>