Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

keytool.exe is not a valid win32 application

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

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

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

  3. 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?

like image 493
Ti7a Avatar asked Nov 26 '11 15:11

Ti7a


2 Answers

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

Wolfen

like image 97
Wolfen Avatar answered Sep 20 '22 18:09

Wolfen


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

After a bunch of research, I came across a this: http://www.java.com/en/download/help/x64bits.xml

It says to install the 32bit version to fix the problem. However I didn't like that idea, so I re-installed the 64bit version and it fixed the problem form me.

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

like image 25
Chillie Avatar answered Sep 20 '22 18:09

Chillie