Keytool and jarsigner tool [closed]

老子叫甜甜 提交于 2019-12-07 19:43:08

问题


I have developed a blackberry application which I have loaded in the BB device. But as we know, without signing the application with RIM we can't run the application on the device. Is there any way which I can create the trial version of my application for some days and run it in the device for testing purposes.

I have heard about the "keytool" and "jarsigner" tools. Can this tools help me to run my application in device without signing the application? If yes, please give me the steps regarding how it can be done.


回答1:


The steps to sign a java archive (.jar file).

  1. First create the public key with keytool program:
    keytool -genkey -alias <alias name> -keystore <key file> (http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/keytool.html).

  2. Then sign the java archive package:
    jarsigner -keystore <key file> -storepass <password 1 from steps before> -keypass <password 2 from steps before> -sigfile <the name of files .DSA .SF> -certs <java archive file name> <alias name> (http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/jarsigner.html).



来源:https://stackoverflow.com/questions/4282405/keytool-and-jarsigner-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!