Thursday, January 12, 2017

keytool error java.io.FileNotFoundException: (Access is denied)

You launched the Command Prompt to create a keystore as below, and in the end the error occurred.

>keytool -genkey -alias mykeystore -keyalg RSA -keystore KeyStore.jks -keysize 2048

Enter keystore password:
Re-enter new password:
What is your first and last name?
      [Unknown]: joysu
What is the name of your organizational unit?
      [Unknown]: ps
What is the name of your organization?
      [Unknown]: ddw
What is the name of your City or Locality?
      [Unknown]: ocoee
What is the name of your state or province?
      [Unknown]: fl
What is the two-letter country code for this unit?
      [Unknown]: us
Is CN=joysu, OU=ps, O=ddw, L=ocoee, ST=fl, C=us correct?
      [No]: yes

Enter key password for ,jkskeystore.
                (RETURN if same as keystore password):

keytool error: java.io.FileNotFoundException: keystore.jks (Access is denied)

Do the following to fix it.

Change the directory and file access permission to allow you to access the file.

If change access permission does not solve the problem, launch the Command Prompt as an administrator. Right click on Command Prompt and select "Run as administer".

-----------------------------------------------------------------------------------------------------------------
Watch the blessing and loving online channel: SupremeMasterTV live




If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.

2 comments: