Keytool error: Java. Io. filenotfoundexception: myandroidkey. keystore (Access denied ).

Source: Internet
Author: User

Problem:Keytool error: Java. Io. filenotfoundexception: myandroidkey. keystore (Access denied ).


Symptom: When the android APK signature is supported under cmd today, enter the command: keytool-genkey-alias myandroidkey. keystore-keyalg RSA-validity 20000-keystore myandroidkey. keystore

Then enter a series of info, and the above error occurs when the input password is confirmed.


Survey Summary

Permission issues:Your JDK directory is on drive C, and the current user has no write permission;
Solution:1. modify directory permissions. It is best to use the Java directory 2. Because JDK environment variables are already available, change to other partitions and execute arbitrary directories.

Thinking: I found that the attributes of all directories on the computer drive C are read-only and I have never paid attention to them before (Note: I have logged on with non-administrator permissions ). In other words, except Windows folders may be protected, other folders should not be read-only.

I. Want to know why it is read-only?

2. Manually change the directory properties to remove read-only data. In addition to permission modification, is there any other way to modify or remove this attribute?

Anyone who knows about Windows permission attributes can give me some help!


Appendix: see how to log on as an administrator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.