Keytool.exe is not a valid win32 application

Whenever I use any of these commands, I get the error "keytool.exe is not a valid win32 application" even when I open keytool.exe independently as an exe file.

  • C:\Program Files(x86)\Java\jre6\bin>keytool.exe -list -alias androiddebugkey -keystore "C:\Users\ti7a\.android\debug.keystore" -storepass android -keypass android

  • keytool -list -keystore "C:\Users\ti7a\.android\debug.keystore"

  • C:>cd C:\Program Files\Java\jre6\bin

    and then

    keytool -list -alias androiddebugkey -key store "C:\Users\ti7a\.android\debug.keystore" -storepass andro id -keypass android

How is this caused and how can I solve it?

+4
source share
3 answers

I ran into the same problem. I found another keytool.exe inside "C: \ Program Files (x86) \ Java \ jdk1.7.0_03 \ jre \ bin" I think you used keytool.exe inside "C: \ Program Files (x86) \ Java \ jdk1.7.0_03 \ bin "

Wolfen

+6
source

I had the same problem. I looked at the size of the EXE file and its size was 0kb.

After several studies, I came across this: http://www.java.com/en/download/help/x64bits.xml

It says to install the 32-bit version to fix the problem. However, I did not like this idea, so I reinstalled the 64-bit version and fixed this problem because of me.

You might want to check the file size to see if this could be your problem.

+5
source

I copied keytool.exe from another server and replaced it on the machine, throwing this error, and it worked for me.

+2
source

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


All Articles