Thanks for the tutorial! I had to play around with it a bit but eventual got it ;) some tip that helped me:
I put the ?echo% JAVA_HOME%? under the Java prompt you get by holding shift and right clicking to get the path.
Set the JAVA_HOME in windows by right clicking My Computer> Properties > Advanced System Settings > Environmental Variables Once there add a new System Variable (JAVA_Home) and put the path you got from using echo% JAVA_HOME% as the Variable Value.
If your using PhoneGap it will ask you for your Alias when signing APK its the last ?YOURAPPNAME? in the code below
- jarsigner -verbose -keystore C:\Android\YOURAPPNAME.keystore C:\Android\YOURAPPNAME_release.apk YOURAPPNAME
Hope this helps someone save some time.