Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jarsigner is not recognized internal or external command

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.

like image 860
Leogreen Avatar asked Oct 14 '15 17:10

Leogreen


People also ask

How to Add Jarsigner in path?

Drag and drop the jarsigner.exe file into the command prompt window to fill in the path automatically.

Where is Jarsigner located?

The jarsigner tool is bundled with every Java JDK install, is found in the JDK's bin directory, and is likely accessibly directly through a command prompt or terminal window so long as the JDK's bin directory has been put on your operating system's PATH.


2 Answers

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".

like image 79
Mohamad Al Asmar Avatar answered Oct 12 '22 04:10

Mohamad Al Asmar


  1. Go to My computer -> right click -> system properties ->select environmental variables ->Edit Path -> add your jdk/bin path and select ok. The sample jdk path is as shown below.

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

*if this not work then

  1. In command prompt set the path by using the below command

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

now the path is set now you can use the jarsigner

like image 21
MANOJ G Avatar answered Oct 12 '22 05:10

MANOJ G