Click here to Skip to main content
Rate this: bad
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 19:16pm
Edited 3-Jan-13 19: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 at 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
0 Sascha Lefévre 485
1 Sergey Alexandrovich Kryukov 325
2 Maciej Los 240
3 Abhinav S 174
4 Peter Leow 120
0 Sergey Alexandrovich Kryukov 6,773
1 OriginalGriff 6,311
2 Maciej Los 2,692
3 Peter Leow 2,654
4 Abhinav S 2,562

Advertise | Privacy | Mobile
Web02 | 2.8.150414.1 | Last Updated 4 Jan 2013
Copyright © CodeProject, 1999-2015
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