04-24-2010 05:21 PM
When I created my project, it asked me what JRE to use, and I told it 4.6. Now, I'd like to change it to 4.5 (and change it back again upon my whim, and so on). When I go to "Windows->Preferences->Java->Installed JREs", I can see all the components, as I should, and I can select whichever I want, which only makes it the default for newly created projects. When I right-click on my project and go to "Properties->Blackberry Project->View/Edit Application Descriptor", there are all my JREs (and therefore I assume these are the component packs) under the heading "Preprocessor Directives", which doesn't seem to have anything to do with JREs or component packs. Furthermore, they are all greyed out and I can't select a different one than the one labeled "BlackBerrySDK4.6.0", even though I can see all the others greyed out.
Am I in the right place to change the JRE/Component Pack I want to build for and, if so, how do I get the selections un-grey?
Or, alternatively, is there a file I can edit somewhere that tells Eclipse/Blackberry which JRE to use?
Solved! Go to Solution.
04-24-2010 06:59 PM - edited 04-24-2010 07:01 PM
You should see JRE System Library within your project in your Package Explorer.
Right-click this and click properties to change your target OS.
The preprocessor directives change whenever you change the JRE so you can use preprocessor to strip out code that is not compatible with a certain OS.
05-11-2010 12:25 PM
Do you have to do this for every Project in the workspace? I have about 10 projects so this would become quite tedious if I want to maintain different build versions.