让jarsigner签署.apk文件 [英] getting jarsigner to sign an .apk file

查看:113
本文介绍了让jarsigner签署.apk文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



这种情况​​:

生成的文件密钥的位置:

Hello all,

This is the situation:
location of the generated file key:

C:/Software/Android/APK/keytools/key/kill-them-all.keystore



原始文件的位置由jarsigner签名:


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.

推荐答案

将命令行更改为;



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





你应该只给密钥库提供名称,而不是完整路径。



/ Fredrik



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

/Fredrik


这篇关于让jarsigner签署.apk文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆