Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse ANT build:[signjar]输入密钥库的密码短语:_Eclipse_Ant_Keystore_Keytool_Jarsigner - Fatal编程技术网

Eclipse ANT build:[signjar]输入密钥库的密码短语:

Eclipse ANT build:[signjar]输入密钥库的密码短语:,eclipse,ant,keystore,keytool,jarsigner,Eclipse,Ant,Keystore,Keytool,Jarsigner,我已经在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: BU

我已经在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
我已经在project目录中使用keytool创建了keystore文件,build.xml正好位于该目录中

但它不会提示输入密码短语?

试试: 使用“keytool”命令创建存储文件:

并将下面的signjar块放入build.xml中:

<signjar destDir="signed" 
  alias="YourKeyString" 
  keypass="YourPassKeyString"
  keystore="YourKeyStoreFileAtPojectDirectory"
  storepass="YourPassStoreString"
  digestalg="SHA1"
  sigalg="MD5withRSA"
>

“系统找不到指定的文件”-->您确定该文件存在于正确的路径
C:\Documents and Settings\Gopakumar\.keystore
?请再核对一下,没有。密钥库文件位于项目目录中,该密钥库文件的路径在build.xml中设置。但是系统会在C:\Documents and Settings\Gopakumar\.keystore中检查文件。是否有任何解决方案使系统在项目目录中搜索它?我也尝试过将密钥库文件放在C:\Documents and Settings\Gopakumar\中,但它对我不起作用。
<signjar destDir="signed" 
  alias="YourKeyString" 
  keypass="YourPassKeyString"
  keystore="YourKeyStoreFileAtPojectDirectory"
  storepass="YourPassStoreString"
  digestalg="SHA1"
  sigalg="MD5withRSA"
>