Jarsigner not recognized by internal or external command

I am trying to check if the signed apk release is really signed. But after some lessons or singles that I found.

$ jarsigner -verify -verbose -certs my_application.apk 

I get this message: "Jarsigner is not recognized by the internal external command."

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

+10
source share
4 answers

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

Instruction:

1- Right-click on "This PC"> right-click on "Properties"> "Advanced System Settings"> "Environment Variables"> select "PATH", then "CHANGE".

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

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

+25
source

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

Now your jarsigner will work successfully.

+1
source
  1. Go to the "My Computer" section β†’ right-click β†’ system properties β†’ select environment variables β†’ β€œChange Path” β†’ add the path to jdk / bin and select β€œOK”. An example jdk path is shown below.

C: \ Program Files \ Java \ jdk1.8.0_211 \ bin

* if this does not work, then

  1. On the command line, specify the path using the command below

set PATH = C: \ Program Files \ Java \ jdk1.8.0_211 \ bin

Now the path is set, now you can use jarsigner

0
source

"C: \ Program Files \ Java \ jdk1.8.0_40 \ bin \". if you are instead of this stream, it will perform all the functions in the bin area, for example keytool and certifier,

-2
source

Source: https://habr.com/ru/post/1233728/


All Articles