title: Unable to create key while signing my app
body: <p>I am trying to create a apk of the my app.I went through the docs and found out the procedure.I was First Instructed to go to my project folder and put in the command :</p>
  
  <pre><code>keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 
  10000 -alias key
  </code></pre>
  
  <p>But then i got a error that keytool wasn't a recognized command.I looked up online and found out the directory where my java is installed and then opened cmd in the folder where keytool was present.</p>
  
  <p>The command was executed successfully and i got all the proceedings such as creating my keystore password and other personal details.</p>
  
  <p>Towards the end , right after i put in the password for the key i get a error :</p>
  
  <pre><code>keytool error: java.io.FileNotFoundException: ~\key.jks (The system cannot 
  find the path specified)
  java.io.FileNotFoundException: ~\key.jks (The system cannot find the path 
  specified)
           at java.io.FileOutputStream.open0(Native Method)
           at java.io.FileOutputStream.open(FileOutputStream.java:270)
           at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:213)
           at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:101)
           at sun.security.tools.keytool.Main.doCommands(Main.java:1144)
           at sun.security.tools.keytool.Main.run(Main.java:343)
           at sun.security.tools.keytool.Main.main(Main.java:336)
  </code></pre>
  
  <p>I should get a file named key.jks but that fails.</p>