This page contains information about developing Java Microedition (J2ME) applications for the various models of Blackberry devices.
The Version of the JDK To Use
Research In Motion (RIM) maintains several versions of their own Blackberry Java Development Environment (check it out). It’s not always safe, apparently, to assume you can use the latest version. On a recent webcast I discovered that you should use the version of the JDK that corresponds with your phone. Here’s a screenshot of a graphic I captured while watching a RIM presentation on what JDK to use.
Working With Signed MIDlets
More cases than not MIDlets needs to be signed, and there is a lot of useful information available to get certificates issued and sign the MIDlets. There are, however, some things you’ll run into that aren’t readily covered in the documentation or online.
Here’s one …
How to Reset the Signtool Password Used on Your PC
Here’s the situation: the Blackberry signing tool complains that your password isn’t correct, and so you can’t sign your .cod files. Well, if you know you’re the person who is supposed to actually sign the .cod files and you have your certificate from Research In Motion, then one option you have is to reset the password that the signing tool uses. I posted a solution on the Blackberry forum at this location, but since I had an error in the original posting, I’m putting a corrected version here.
How to reset your Blackberry signtool key and regenerate sigtool.set, sigtool.db, and sigtool.csk
sigtool.set, sigtool.db, and sigtool.csk are three files generated by the Blackberry signing tool when you register your .csl files that you get from Blackberry technical support.
If for some reason you loose the local passkey on your machine and you need to generate a new one, you can do it by:
- Backup (e.g. move to a different directory) the local keystore database files sigtool.set, sigtool.db, and sigtool.csk in the JDE directory. On Windows the directory isC:\Program Files\Research In Motion\BlackBerry JDE 4.5.0\bin
- Click on the .csi file that you received via e-mail.
- The signing tool will start and prompt you for your pin number and a new local password.
- Click on the remaining certificates you received in your e-mail to register those certificates as well.