‘keytool’ is not recognized as an internal or external command, operable program or batch file

嘗試跟著Ionic FrameworkOfficial Document
http://ionicframework.com/docs/guide/publishing.html
Keytool instructions from Ionic Publishing page

使用 keytoolsign我的 Ionic Android APK時出現以下的錯誤信息

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

應該是Environment Variable上的 Path 有些問題而造成的

解決方法

在電腦上找出安裝在電腦上的 Java Bin 資料夾
Java Bin Folder Path

E.G.
C:\[Program Files 或 Program Files (x86)]\Java\[jdk version]\bin
我的bin folder是在這裡的
C:\Program Files\Java\jdk1.8.0_25\bin

之後加進 電腦的 Environment Variable的 “path” 屬性上
Environment Variable - Path property

之後重新啟動 command prompt便可以了
Keytool command works

Hope you find it useful



One thought on “‘keytool’ is not recognized as an internal or external command, operable program or batch file

Leave a Reply