Keytool error in windows

I am trying to release my app and i’m at the point where i should use command

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

but I get this error

'keytool' is not recognized as an internal or external command,
operable program or batch file.

So I’ve searched for it and I found this and this and currently i have my system settings like:


Yet I’m getting same error as before.

Any idea how to fix this issue?


I should have add the same variable into system path AND open my terminal manually by going to my app folder (if i get my folder location by terminal and “cd” commands it wasn’t work)

Hope it help others