Detecting BlackBerry JDE Version

Posted by David N. Welton Wed, 30 Dec 2009 11:29:00 GMT

Recently, I went back and added some preprocessor code (it's pretty much necessary in the world of J2ME) to ensure that Hecl would compile with older versions of the BlackBerry JDE. However, I also faced a problem: how to figure out what version of the JDE we're using. It could be my latest cold clouding my mind, but I couldn't find a simple way to do this. It never seems to be simple with the BlackBerry platform, unfortunately.

I did, however, finally find a nice way to obtain this information programmatically: the bin/rapc.jar file, which ships with the JDE, contains a file called app.version, which, indeed, contains the version of the JDE in use. I hacked up this code to read it and print it out:

no comments |

Trackbacks

Use the following link to trackback from your own site:
http://journal.dedasys.com/trackbacks?article_id=2173

  1. Social comments and analytics for this post From uberVU - social comments
    This post was mentioned on Twitter by planetstartup: Detecting BlackBerry JDE Version: Recently, I went back and added some preprocessor code (it's pretty muc... http://bit.ly/4oMpRT