Click here to Skip to main content
12,548,135 members (47,635 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java
Hello all,

This is the situation:
location of the generated file key:
location of the original file to be signed by jarsigner:
this is my command line:
C:\Software\Android\APK\keytools\key>C:\"Program Files (x86)"\Java\jdk1.6.0_16\b
in\jarsigner -verbose -keystore key/C:/Software/Android/APK/keytools/key -signed
jar kill-them-all_signed.apk kill-them-all.apk
this is the response:
Enter Passphrase for keystore: I enter the password
this is the response:
jarsigner error: java.lang.RuntimeException: keystore load: C:\Software\Android\
APK\keytools\key\key\C:\Software\Android\APK\keytools\key (The filename, directo
ry name, or volume label syntax is incorrect)
The problem is I cannot find the error in my command line.
Posted 3-Jan-13 18:16pm
Updated 3-Jan-13 18:24pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Change your command line to;

C:\Software\Android\APK\keytools\key>C:\"Program Files (x86)"\Java\jdk1.6.0_16\bin\jarsigner -verbose -keystore kill-them-all.keystore -signed jar kill-them-all_signed.apk kill-them-all.apk

You should just give the name to the key store, not the full path.

Georgeasp 4-Jan-13 19:33pm
Thanks Fredrik,
I'll have a chance to check that code out tomorrow morning.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.161021.1 | Last Updated 4 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100