【发布时间】:2013-05-09 14:40:17
【问题描述】:
我在 Eclipse 中创建了一个项目,在尝试从命令提示符构建项目时,会询问以下问题:
[signjar] jarsigner error: java.lang.RuntimeException: keystore load: C:\Documents
and Settings\Gopakumar\.keystore (The system cannot find the file specified)
[signjar] Enter Passphrase for keystore:
BUILD FAILED
D:\Score\build.xml:556: The following error occurred while executing this line:
D:\Score\build.xml:147: jarsigner returned: 1
我在项目目录中使用 keytool 创建了密钥库文件,正是 build.xml 所在的位置。
但它没有提示输入密码?
【问题讨论】:
-
"系统找不到指定的文件" --> 你确定文件在
C:\Documents and Settings\Gopakumar\.keystore的准确路径下吗?请仔细检查。 -
没有。密钥库文件位于项目目录中,该密钥库文件的路径在 build.xml 中设置。但系统会检查 C:\Documents and Settings\Gopakumar\.keystore 中的文件。有没有办法让系统在项目目录中搜索?我也尝试将密钥库文件放在 C:\Documents and Settings\Gopakumar\ 中,但它对我不起作用。
标签: eclipse ant keystore keytool jarsigner