keytool -genkey -alias me >keytool -selfcert -alias me >jarsigner myJ...">

Jarsigner "Only one alias can be specified"

At the windows command prompt:

>keytool -genkey -alias me >keytool -selfcert -alias me >jarsigner myJar.jar me Only one alias can be specified 

I could not find information about this error on the Internet. I obviously only provide one alias here. What can i do wrong?

+6
source share
3 answers

I was getting the same error.

I resolved it by renaming folders in my path

 c:\this is a folder\ replaced with c:\this_is_a_folder\ 

jarsigner does not like spaces in folders

+15
source

Just put quotes around the name of the file (s) with spaces. You need to specify the arguments with spaces in them, in any program. Nothing to do with jarsigner.

+1
source

I had the same problem and solved this problem by switching to jarsigner from jdk 6. Although I created my certificate with keytool from jdk 7, I could not sign it using jarsigner.

-1
source

Source: https://habr.com/ru/post/905229/


All Articles