05-28-2010 11:26 PM
I am using the Eclipse 1.1 Plug-In and have an application that I would like to target to multiple OS versions, namely 4.5, 4.7 and 5.0. The core code is largely the same, but includes some conditionally compiled 4.7+ APIs for touch event handling and some optional 5.0 calls for screen transitions and location based services.
It's easy enough to configure the Eclipse project to target one JRE at a time and set the appropriate preprocessor directives. However, I would really like to produce a multi-OS deliverables tree and ALX file in a single step.
Which of the following is the best way to approach this:
08-06-2010 03:44 PM
I have the same problem. I want to deploy on a 4.6 device, but the current cod file is only working for 5.0 devices in despite of I'm avoiding the use of 5.0 apis. I'm also using Eclipse 1.1 plugin.
Thanks in advance.
08-06-2010 05:13 PM - edited 08-06-2010 05:15 PM
dnepr, please read the original post before providing a solution that the original poster already knew about.
ezequield, you probably just need to change the JDE for your project. In eclipse, go to project properties, then "Java Build Path" in the treeview on the left. Then click the "libraries" tab and change the JRE system library to the minimum version of the OS that you want to support.
08-06-2010 05:17 PM
During the last developer conference one of the developers mentioned that their company had a single code source for all OSes. They were dynamically loading all the classes using Class.forName(...).
Perhaps exploring this option is worthwhile.
09-13-2010 12:16 PM
When I choose to set the JRE version, I see the default JRE (which is not the BB one), and the selected one is the BB JRE 5.0. I don't see BB JRE4.5, etc. Are they a seperate install?