Bonsoir,
J'espère que je ne me trompe pas de section ne connaissant pas ce forum avant aujourd'hui.
Bref, j'ai un problème avec l'outil de java qui se nomme "Jarsigner".
J'ai développé une application sous android (qui sont en .apk) et maintenant je voudrais la signer avec mon certificat pour pouvoir la publier sur l'android market.
Voilà mon problème plus en détail :
Dans la CMD je tape cela pour le mener au répertoire où se trouve mon appli en .apk ainsi que mon certificat et les outils java (je cherche à signer mon application avec mon certificat).
PATH = D:\Program Files\Java\jdk1.6.0_23\bin
ET (mes essais de commande)
jarsigner.exe -verbose -keystore my-release-pre-key.keystore Launcher_signed.apk aliasname
jarsigner.exe -verbose -keystore my-release-pre-key.keystore Launcher_signed.apk alias_name
jarsigner.exe -verbose -keystore my-release-key.keystore Launcher_signed.apk aliasname
jarsigner.exe -verbose -keystore my-release-key.keystore Launcher_signed.apk alias_name
Voici le résultat en image : (pourquoi?? ça ne marche pas!!!)
Voici ce qu'un tuto trouvé sur le net me dit et aussi ce que google dit de faire :
------------------------------------------------------------------------------------------------------
Du tuto trouvé sur le net
------------------------------------------------------------------------------------------------------
4) Sign the app and optimize it
From the bin folder of JDK execute in a terminal:
Codice:
jarsigner.exe -verbose -keystore my-release-pre-key.keystore apkname.apk aliasname
You will be prompted to enter your private key password and once entered, the application will be signed with our private key.
------------------------------------------------------------------------------------------------------
De google :
------------------------------------------------------------------------------------------------------
3. Sign your application with your private key
When you have an application package that is ready to be signed, you can do sign it using the Jarsigner tool. Make sure that you have Jarsigner available on your machine, as described in Basic Setup. Also, make sure that the keystore containing your private key is available.
To sign your application, you run Jarsigner, referencing both the application's .apk and the keystore containing the private key with which to sign the .apk. The table below shows the options you could use.
Jarsigner Option Description
-keystore <keystore-name>.keystore The name of the keystore containing your private key.
-verbose Enable verbose output.
-storepass <password>
The password for the keystore.
As a security precaution, do not include this option in your command line unless you are working at a secure computer. If not supplied, Jarsigner prompts you to enter the password. In this way, your password is not stored in your shell history.
-keypass <password>
The password for the private key.
As a security precaution, do not include this option in your command line unless you are working at a secure computer. If not supplied, Jarsigner prompts you to enter the password. In this way, your password is not stored in your shell history.
Here's how you would use Jarsigner to sign an application package called my_application.apk, using the example keystore created above.
$ jarsigner -verbose -keystore my-release-key.keystore
my_application.apk alias_name
Running the example command above, Jarsigner prompts you to provide passwords for the keystore and key. It then modifies the .apk in-place, meaning the .apk is now signed. Note that you can sign an .apk multiple times with different keys.
------------------------------------------------------------------------------------------------------
Si une âme charitable pouvait m'aider, car j'ai deéjà passé des heures sur ce problème mais rien n'y fait
Partager