• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cell phone app -> blackberry app

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a J2ME application that is currently distributed for cell phones. We would like to make this application available for Blackberry devices.

After reviewing the 'Blackberry Developer Guide' I am still not clear on the best approach for porting this application. At this point we are simply concerned with having a working application for Blackberry and not looking to optimize performance or UI characteristics. My specific questions are as follows:

1) Can we install the same jar/jad files that we use for cell phones on a Blackberry?
2) If we cannot use the exact same jar/jad files, can we use the same code and just build this application using the Blackberry IDE?
3) Do code changes need to be implemented?

Thanks for your help!
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Greg.

The jar file needs to be converted into a .cod file, which runs on blackberry. Apparently, there are three ways of doing this.

* Antenna, an open source ant based project.
* Blackberry's enterprise server, which, from what I've read, converts jar files to cod files on the fly.
* Recompiling the code (or importing the jar? not sure here) in the IDE.

I assume you have a blackberry device? If so, you can try just using the antenna wtkrapc task. I'm trying to avoid the IDE, and there doesn't seem to be a way to load the simulator apart from the IDE. But I can generate a .cod file using this task.

The jad file also definitely needs to change. See the "deploy .cod files" section of the BlackBerry_Developer_Guide_Volume_1_-_Fundamentals.pdf available at the RIM website for additional attributes needed in the jad file. (Unless you're using the Mobile Data Service of the Blackberry Enterprise Server, in which case magic seems to happen? Not sure.)

However, I don't believe any code changes have to be implemented, since I believe that the Blackberry implements all of MIDP 1.0. See the document titled Creating_MIDP_Applications.pdf for more info.

Dan
 
Daniel Moore
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yup. Here's confirmation that Blackberrys support MIDP 1.0 and CLDC 1.0. (At the bottom.)
 
reply
    Bookmark Topic Watch Topic
  • New Topic