title: Cannot run program "...\keytool.exe": CreateProcess error=2
body: <p>I'm new on Stack Overflow so don't hold it against me if I make mistakes.
  Here is my problem, I created a simple Android app in Eclipse and when I try to run it I get this error :</p>
  
  <blockquote>
    <blockquote>
      <p>Error generating final archive: Failed to create key: Cannot run program "D:\Program   Files\Java\jre7\bin\keytool.exe": CreateProcess error=2, Le fichier spécifié est introuvable
      JAVA_HOME is set to: D:\Program Files\Java\jre7
      Update it if necessary, or manually execute the following command:
      "D:\Program Files\Java\jre7\bin\keytool.exe" -genkey -alias AndroidDebugKey -keyalg RSA -dname "CN=Android Debug,O=Android,C=US" -validity 10950 -keypass android -keystore C:\Users\Vincent.android\debug.keystore -storepass android LunarLander     Unknown Android Packaging Problem</p>
    </blockquote>
  </blockquote>
  
  <p>I have tried JDK 1.6 &amp; 1.7 for x64 &amp; x86 each time. I'm running Windows 7 Ultimate x64.
  I tried running keytool.exe (JRE and JDK version) with cmd.exe and the explorer but it says :</p>
  
  <blockquote>
    <blockquote>
      <p>Windows cannot find "D:\Program Files\JAVA\jre7\bin\keytool.exe". Make sure you typed the name correctly, and then try again. To search for a file click the Start button, and then click search.</p>
    </blockquote>
  </blockquote>
  
  <p>Thinking it was a problem with the space between "Program" and "Files", I tried installing the JDK in "D:\Java\jdk...".</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>I found the solution ! 
  All you need to do is to delete <strong>keytool.exe</strong> from <strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options</strong> in the registry.</p>