keytool和jarsigner工具 [英] keytool and jarsigner tool

查看:424
本文介绍了keytool和jarsigner工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个黑莓应用程序,我已经加载到BB设备中。
但是我们知道,如果没有使用RIM签署应用程序,我们就无法在设备上运行应用程序
。有没有什么方法可以创建我的应用程序的试用版几天,并在设备中运行它以进行测试。

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.

我听说过keytool和jarsigner工具。这个工具可以帮助我在设备上运行我的应用程序而无需签署应用程序吗?如果是,请告诉我有关如何完成的步骤或详细信息。

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 or details regarding how it can be done.

推荐答案

签署java档案的步骤( .jar文件)。

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


  1. 首先使用keytool程序创建公钥:

    keytool -genkey - 别名< alias name> -keystore<密钥文件> ( http://docs.oracle.com/javase/ 6 / docs / technotes / tools / solaris / keytool.html

然后签署java档案包:

jarsigner -keystore<密钥文件> -storepass<密码1来自之前的步骤> -keypass<密码2来自之前的步骤> -sigfile<文件名.DSA .SF> -certs< java存档文件名> < alias name>
http://docs.oracle。 com / javase / 6 / docs / technotes / tools / solaris / jarsigner.html

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).

这篇关于keytool和jarsigner工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆