在设备上运行黑莓应用'尝试访问安全api'

时间:2012-08-01 11:44:28

标签: java eclipse blackberry

我是Blackberry开发的新手,需要一些指导才能将应用分发给设备。这些是我采取的步骤以及我遇到问题的地方:

  • 我在eclipse中构建我的应用程序
  • 在顶部菜单中,我转到'blackberry'> 'sign'> '使用签名工具签名'
  • 当弹出签名工具时,单击“添加”,选择构建
  • 中的cod文件
  • 点击'request'然后我看到我的cod文件旁边的绿色'签名',其中signerid为RBB
  • 然后我使用cmd上传我的应用程序使用C:\ Java> JavaLoader.exe -u load myapp.cod
  • 应用程序在手机上显示,但点击后我收到错误“尝试访问安全API”

我怀疑我应该为我的RCR和RRT应用程序“签名”。我该怎么做才能说出签名?

感谢您提前提供任何帮助

1 个答案:

答案 0 :(得分:2)

首先在eclipse上安装三个代码签名密钥。 适用于Eclipse用户的BlackBerry JDE Plug-in:

Save all 3 .csi files in the same directory (each one will be sent in a separate email message).
Start Eclipse.
Click on the BlackBerry menu and choose Install Signature Keys.
Select one of the 3 .csi files saved in step 1 and click Open.
Click "Yes" to create a new key pair file.
Type a password for your private key of at least 8 characters, and type it again to confirm. This is your private key password, which protects your private key. Please remember this password as you will be prompted for it each time signing is attempted or a signature key is installed.
Move your mouse to generate date for a new private key.
In the Registration PIN" field, type the PIN number that you supplied on the signature key order form.
In the Private Key password field, type the password created in step 6.
Click Register .
Click Exit .
Repeat this process for the other csi files.

然后右键单击您的项目 - > 黑莓 - > 使用签名工具签名,然后会提示输入密码。提供密码后,它将签署所有必要的文件。完成签名后,它将在日食控制台中显示您签名的Cod文件的位置。