Which Version of Blackberry JRE is required for Developing BlackBerry OS6

谁都会走 提交于 2020-01-13 05:15:19

问题


I downloaded the Eclipse plugin for BlackBerry which has the BlackBerry OS 7 runtime by default. I need to target BlackBerry OS 6 and OS 7 devices. Will this work for BlackBerry OS 6 as well, or do I need to change the the JRE? If I need change the JRE, how do I do that?


回答1:


What you have already downloaded will be fine for developing for BlackBerry OS 7. However, to also develop for OS 6 devices, you should install the OS 6.0 plugin SDK, too.

Currently, this blackberry.com page describes the general process you'll need to follow:

  1. In Eclipse, select Help -> Install New Software.
  2. Then click the Add... button to add a new software update site, if the BlackBerry site is not already available to Work with.
  3. Enter the URL for the BlackBerry site ( http://www.blackberry.com/go/eclipseUpdate/mac/java for OS X and http://www.blackberry.com/developers/jar/win/java for Windows )
  4. If you then select the BlackBerry update site, you should see a category of updates named BlackBerry Java Plug-In Category, or something similar. Expand that, and you should be able to install the 7.1, 7.0, 6.0, or 5.0 SDKs.

Install all the SDKs whose devices you might want to target as minimum versions for your apps. On Windows, choosing a particular JRE version also gives you at least one simulator that runs that version of BlackBerry smartphone software (Mac OS X SDKs don't support simulators, though).

Once you have a BlackBerry Eclipse project, you will then be able to pick which SDK version you build against. This will be the minimum version that the app will support.

  1. Right click the Project in the Eclipse Package Explorer, and select Properties.
  2. There, you can see the Java Build Path properties, which specify which minimum JRE (OS) version you are targeting.
  3. Then, on the Libraries tab, you can Remove the current JRE (OS) version, and replace it with another one by selecting Add Library, then JRE System Library.
  4. Pick Alternate JRE and you should be able to choose from any JRE version whose plugin you installed in the first few steps of these instructions.

That's all!



来源:https://stackoverflow.com/questions/12296770/which-version-of-blackberry-jre-is-required-for-developing-blackberry-os6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!