Jarsigner is not recognized internal or external c

2019-04-05 07:37发布

i'm trying to check if my signed release apk is really signed. But following some tutorials, or the single i've found .

$ jarsigner -verify -verbose -certs my_application.apk

I am receiving this message : "Jarsigner is not recognized internal external command".

Remembering that my apk is in the same folder of jarsigner.exe I dont know what to do.

3条回答
Lonely孤独者°
2楼-- · 2019-04-05 08:08

"C:\Program Files\Java\jdk1.8.0_40\bin\". if you this instead of the above thread it will take all the functions in the bin area e.g keytool and certifier as well

查看更多
在下西门庆
3楼-- · 2019-04-05 08:17

If the above step does not work, copy the unsigned-release-apk.apk file and keystore file in C:\Program Files\java\jdk_version\bin\ and run cmd as an administrator and navigate to C:\Program Files\java\jdk_version\bin\

Now your jarsigner will work successfully.

查看更多
男人必须洒脱
4楼-- · 2019-04-05 08:19

Solution: Add android jdk bin folder to your path in environment variables.

Instructions:

1- Right click on "This PC" > right-click Properties > Advanced system settings > Environment Variables > select PATH then EDIT.

2- Add your jdk bin folder path to environment variables, it should look like this:

"C:\Program Files\Java\jdk1.8.0_40\bin".

查看更多
登录 后发表回答