Click here to Skip to main content
13,090,299 members (89,921 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hello all,

This is the situation:
location of the generated file key:
C:/Software/Android/APK/keytools/key/kill-them-all.keystore

location of the original file to be signed by jarsigner:
C:/Software/Android/APK/keytools/kill-them-all.apk

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 kill-them-all.store

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
v2

1 solution

Rate this: bad
 
good
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 kill-them-all.store


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

/Fredrik
  Permalink  
Comments
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 |
Web01 | 2.8.170813.1 | Last Updated 4 Jan 2013
Copyright © CodeProject, 1999-2017
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