Ti7a
Ti7a

Reputation: 101

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?

Upvotes: 5

Views: 11145

Answers (3)

hedda
hedda

Reputation: 61

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

Upvotes: 2

Wolfen
Wolfen

Reputation: 380

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

Upvotes: 7

Chillie
Chillie

Reputation: 1026

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.

Upvotes: 5

Related Questions