java -jar <jarFile> arguments can run multiple jar files? -


i try prepare bat file sign apk file signapk.jar syntax of program is:

java -jar signapk.jar testkey.x509.pem testkey.pk8 <update.apk> <update_signed.apk> 

my script looks this:

java -jar "%~dp0%\signapk\signapk.jar" "%~dp0%\signapk\testkey.x509.pem" "%~dp0%\signapk\testkey.pk8" "%~dp0%\signapk\%apkname%.apk" "%~dp0%\signapk\%apkname%_sign.apk" 

when execute script receive message "unable access jarfile {update_signed.apk}", java "thinks" jar file , tries run it..

someone can me how pass arguments jar file ?

thanks.

the -jar variant of java command line process single jar file, error message not related that.

your error message created signapk application: should try direct command (with no batch wrapper, without argument variables , without special characters or space in path or arguments or relative naming - cd signapk dir first).

if works, can work backwards find escaping has failed you.

btw: if this tool, need specify sign command well:

java -jar signapk.jar -c sign.pem -k sign.p8 sign your.apk 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -