Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BlackBerry development using IntelliJ IDEA 7.0?

I know RIM has their own IDE (BlackBerry JDE) for building BlackBerry apps, but does anyone know how to configure IntelliJ IDEA to build/debug BlackBerry apps?

like image 773
Craig Avatar asked Sep 09 '08 19:09

Craig


People also ask

Can I use IntelliJ instead of Android studio?

Chose Android Studio. Android application development can also be done using the IntelliJ IDE. It is a very good IDE but it is paid for professional and commercial product development. However, IntelliJ IDE is available with a student license for limited application development features.

Is IntelliJ just for Java?

Though designed primarily for Java development, IntelliJ IDEA understands many other programming languages, including Groovy, Kotlin, Scala, JavaScript, TypeScript, and SQL, and it provides smart coding assistance for each of them.


3 Answers

RE: Chris' question about what is different... Blackberry applications can be standard MIDP apps or CLDC apps that make use of the Blackberry specific APIs. Most developers tend to take the latter approach, and then using Blackberry's tools is required - especially if you are using some of their secured APIs and have to sign your deployment files for them to run on the devices.

A potential answer to the original question would be to use the Blackberry ANT tools to create an ANT script for building the application and reference that from IntelliJ IDEA. Of course, that's only half the battle and to run/debug the application you'll need to connect the debugger to IDEA as noted by Alexander above. Alternatively, you could code in IDEA and run/debug in the JDE, but that seems less than ideal, to say the least.

I use Eclipse with the Blackberry plugin. Also not ideal, since you are forced to use an old (and buggy) version of Eclipse, but at least I'm in one IDE and can step through code running in a simulator.

Blackberry JDE integration would be a great IntelliJ plugin project.

like image 161
Eric Avatar answered Oct 21 '22 10:10

Eric


RIM's compiler (the one that builds the COD files) can be easily run from the command line. All you need to do is create a corresponding build step in IDEA.

Also, to make your life easier when editing the code, you may want to add the net_rim_api.jar (the one that comes with RIM JDE) to the JAR files used by your IDEA project.

As for the debugger, RIM's debugger was supposed to support the standard Java debugger interface. I don't remember what the minimum version of JDE is required for that.

like image 39
Alexander Avatar answered Oct 21 '22 11:10

Alexander


Not really an answer, but more asking for clarification what is different for Blackberry dev versus other J2ME devices...

I see its a MIDP J2ME device, and so the standard Intellij J2ME support would seem to give most of what is needed.

I guess the emulator side of things might be different... but maybe you can call the jde emulator from IDEA...

Regards, Chris

like image 1
Chris Kimpton Avatar answered Oct 21 '22 10:10

Chris Kimpton