Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jarsigner "Only one alias can be specified"

Tags:

jarsigner

In Windows command prompt:

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

I have failed to find any info on this error on the web. I'm obviously only specifying one alias here. What could I be doing wrong?

like image 253
unmuse Avatar asked Jan 05 '12 18:01

unmuse


2 Answers

I was getting the same error.

I resolved it by renaming the folders in my path

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

jarsigner doesn't like spaces in folders

like image 150
Joel Davis Avatar answered Nov 15 '22 12:11

Joel Davis


Just put quotes around the filename(s) with spaces. You need to quote arguments with spaces in them, to any program. Nothing to do with jarsigner whatsoever.

like image 4
user207421 Avatar answered Nov 15 '22 11:11

user207421