Hello
@CU25101019-0,
The error means that keytool isn't available in your Windows PATH. You don't need to open keytool.exe directly — it's a command-line utility, so it should be run from Command Prompt/PowerShell.
If you're using a recent version of Android Studio, the bundled JDK is usually under:
C:\Program Files\Android\Android Studio\jbr\bin
Microsoft's current Power Apps Wrap documentation specifically recommends adding this folder to the PATH environment variable.
You have two options.
Option 1 – Run it using the full path
In Command Prompt, try:
"C:\Program Files\Android\Android Studio\jbr\bin\keytool.exe" -genkey -alias powerappswrap -keyalg RSA -keystore powerappswrap.jks -keysize 2048 -validity 10000
If your Android Studio installation uses a different location, adjust the path accordingly.
Option 2 – Add keytool to PATH (recommended)
1. Search Windows for Environment Variables.
2. Open Edit the system environment variables.
3. Select Environment Variables.
4. Under System variables, select Path → Edit.
Select New and add:
C:\Program Files\Android\Android Studio\jbr\bin
- Click OK on all dialogs.
- Close the existing Command Prompt and open a new one.
- Run:
keytool -version
If it returns the Java/keytool version, you're ready.
Then run the Power Apps Wrap command:
keytool -genkey -alias powerappswrap -keyalg RSA -keystore powerappswrap.jks -keysize 2048 -validity 10000
You'll then be prompted for the keystore password and certificate information. This will generate the .jks keystore file required for manual Android signing.
Also, don't worry about keytool.exe opening and immediately closing when you double-click it. That's expected because it's a command-line tool, not a graphical application.
If you're using the automatic signing option in the Power Apps Wrap wizard, you can avoid doing the manual signing steps altogether by configuring Azure Key Vault. Microsoft documents both approaches.