IntelliJ IDEA 9 for programming BlackBerry

I have never done any mobile development before, but I'm interested in trying my hand at developing some simple applications for BlackBerry's.

I would like to use IntelliJ IDEA for application development. I tried Googling to install this, but all I can think of is people who say they need to use RIM JDE to compile and simulate. I am fine with this, I just wanted to know how to configure IntelliJ IDEA to encode applications.

For example, should I configure the project as a Java module or J2ME module, which SDK should I point to the project (if necessary?), Which libraries should be added to the project in order to get code completion, etc ...

Any help would be greatly appreciated.

+4
source share
1 answer

I use IDEA to develop BlackBerry. I think that mainly because I have been using it for so many years, I am not ready to switch to Eclipse yet. :)

As you already mentioned, it serves only as an editor - any compilation, simulations, downloading to devices, etc. still need to be done from the command line (I use ant tasks to compile and download to devices and JDE to compile and run in simulators).

For IDEA, use the following project settings:

  • regular java project (not J2ME)
  • for the JDK project, select "No JDK"
  • for language level select "1.3"
  • create a library pointing to the net_rim_api.jar file.
  • add this library as a dependency for your project
  • If you use resources in your projects (.rrc and .rrh files), you need to add the JAR file that JDE generates into your IDEA library.

That should do it. Since there is no JDK defined for the project, you don’t have to worry about IDEA allowing you to use classes like HashMap that are not in the RIM API, but it will still have classes like String in net_rim_api. jar.

+5
source

Source: https://habr.com/ru/post/1310338/


All Articles