[Solved] I did not need to install JDK. It’s already installed anyway. After reading more and felt exasperated, I thought, maybe, I should just try what I do when all fails – that is, rebooting my Mac. Who knows, it might just clear out whatever got screwed along the way. And OMG, it did. I gave it another shot at launching Terminal.app (from Applications > Utilities), and then followed step #10 from below, and this time, no error occurred. I am able to confirm I’ve got my keystore on my machine too (by searching for “.keystore” using Finder). Glad I didn’t just give up. Whew.
Ugh, I got keytool error: java.io.FileNotFoundException: mygame.keystore (Permission denied).
I use Mac, and here’s what I’ve done so far:
- Installed Android SDK Tools
- Installed Android SDK Platform-tools
- Installed some of Android 2.2 (API8):
* SDK Platform
* Samples for SDK (probably wasn’t necessary)
* Nookcolor
* Google APIs (probably wasn’t necessary)
* GALAXY Tab
- Installed some of Android 2.3.3 (API 10):
* SDK Platform
* Samples for SDK (probably wasn’t necessary)
* Nook Tablet
- Successfully installed & launched myGame.apk on Nook (and Kindle)
- Read through this thread (thank you, Ninja Pig and all the others) as well as other threads I found.
- Launched Terminal.app
- Typed:
sudo keytool -genkey -v -keystore mygame.keystore -alias mygamealias -keyalg RSA -validity 999999
- Could not get past the password prompt.
- Tried this next:
keytool -genkey -v -keystore mygame.keystore -alias mygamealias -keyalg RSA -keysize 2048 -validity 999999
- It asked me to enter keystore password, and then re-enter new password
- With a great sense of relief, I answered whole list of questions, including my name, my organization, my location.
- It finally spat out the list of my answers and asked if it’s correct.
- I typed yes and hit enter
- It asked for key password for mygamealias (and told me to RETURN if same as keystore password), so I simply hit enter.
- Then it began storing mygame.keystore – then came the error:
java.io.FileNotFoundException: mygame.keystore (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:194)
at java.io.FileOutputStream.(FileOutputStream.java:84)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:902)
at sun.security.tools.KeyTool.run(KeyTool.java:172)
at sun.security.tools.KeyTool.main(KeyTool.java:166)
What do I do now? Do I need to install JDK before this error goes away?
Naomi
[import]uid: 67217 topic_id: 8963 reply_id: 99143[/import]