本文介绍了BlackBerry开发在Mac OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我开始为移动设备创建应用程序,并已成功地完成了iPhone的应用程序。我现在把我的关注黑莓手机,但一直没能找到,指出这是可以做到一个令人信服的文章或网站或者对如何做到这一点的教程。可黑莓应用程序可以在Mac OS X开发的?如果是的话,我怎么去这样做呢?任何人都可以请点我在正确的方向,因为我只能访问到Mac,真正想要得到的道路上这个项目。在此先感谢您的帮助。

I recently started creating applications for mobile devices and have successfully completed an application for the iPhone. I am now turning my attention to the Blackberry but haven't been able to find a convincing article or website that states that it can be done or a tutorial on how to do so. Can Blackberry apps be developed on Mac OS X? If yes, how do I go about doing so? Can anyone please point me in the right direction as I only have access to a Mac and really want to get this project on the road. Thanks in advance for your help.

推荐答案

更​​新:

RIM已经发布了MacOS的Eclipse插件,为黑莓开发:

RIM has released a MacOS Eclipse plug-in for Blackberry Development: http://na.blackberry.com/eng/developers/javaappdev/macosx.jsp

虽然没有内置模拟器,插件不支持USB为9800火炬手持设备拴设备调试。我打算送一;他们是〜$499瓦特/没有合同。随着火炬和新的插件,黑莓开发成为可能,而无需使用虚拟机。 (最后!)

While there is no built-in simulator, the plug-in DOES support USB tethered device debugging for the Torch 9800 handhelds. I plan to get one; they are ~$499 w/no contract. With a Torch and the new plug-in, Blackberry development is possible without using a VM. (Finally!)

preVIOUS POST:

PREVIOUS POST:

在MacOS建筑效果很好,一旦你设置它。我有运气少用模拟器。综合来看,虽然,能够原生支持的MacOS仅用于调试运行Eclipse和翻转到Windows虚拟机是在我的书一大胜利。

Building on MacOS works well once you set it up. I've had less luck with the simulator. On the whole though, being able to run Eclipse natively in MacOS and flip to a Windows VM only for debugging is a big win in my book.

您可以得到preverify(见下面的链接了解详细信息)的MacOS的版本。我做我与Eclipse开发的MacOS X和使用Ant来构建应用程序BB。

You can get a MacOS version of preverify (see link below for details). I do my development with Eclipse on MacOS X and use Ant to build BB apps.

这博客是优秀的,有很多的细节,让你开始:
http://www.azizuysal.com/2009/07/blackberry-development-on-mac-os-x.html (原文链接已经死了。在Wayback机器为我们提供与原来的文本内容,但图像和造型都输给了时间的沙滩上,还是值得一读。)

This blog is excellent and has many of the details to get you started:http://www.azizuysal.com/2009/07/blackberry-development-on-mac-os-x.html (original link is dead. The "wayback machine" provides us with the original text content, but images and styling are lost to the sands of time. Still worth a read.)

棘手的部分是获得模拟器的工作。有一个基于葡萄酒的变通,但在我的电脑上,而模拟器能在Wine下运行,LCD输出被扰码。

The tricky part is getting the simulator to work. There is a Wine-based work-around, but on my computer, while the simulator was able to run under Wine, the LCD output was scrambled.

目前,我从Mac打造COD文件,我的Ant构建过程中丢弃它们变成一个与WinXP的虚拟机共享的目录。我可以独立在这个虚拟机上运行的模拟器。调试也可以通过内部的WinXP安装Eclipse和指向调试配置它的源目录。

Currently, I build COD files from Mac, and my Ant build process drops them into a directory that is shared with a WinXP VM. I can run the simulator stand-alone in this VM. Debugging is also possible by installing Eclipse inside WinXP and pointing the debug configuration it at the source directories.

其实我已经得到多一点魔法。我通过编译对1.5,然后翻译字节code到1.3之前的preverify脚本使一些在Java 1.5的特性。 (黑莓只会说一个野蛮的Java 1.3,闪回到大约1992年)。这不是一个银弹因为一些功能仍然不工作,但它确实减少了必要使一切非类型化的对象引用。

I've actually got a bit more magic. I enabled some of the Java 1.5 features by compiling against 1.5 and then translating the bytecode to 1.3 prior to the preverify script. (Blackberry only speaks a barbaric 1.3 java, flashback to circa 1992). It's not a silver bullet as some features still don't work, but it does cut down on the need to make everything an untyped Object reference.

最近,我一直工作在一个的X平台框架,让我写的应用程序code一次,并建立针对Android和黑莓都(两者都是Java)。 Android的部分很容易。这只是调试在黑莓任何一个婊子。有人在RIM工作的决定,黑莓并不需要保持异常堆栈跟踪,除非有一个catch(的Throwable),然后他们可以做一些奇怪的,不规范,和无证(捕获的Throwable的行为怪异)。我只是有点儿,八九不离十想通了一个黑客获得使用JavaLoader.exe堆栈跟踪不打破进入调试器,它是几乎没有值得的。

Lately, I've been working on a x-platform framework to allow me to write app code once and build against both Android and Blackberry (both are Java). The Android part was easy. It's just a bitch to debug anything in Blackberry. Someone working at RIM decided that Blackberry didn't need to keep Exception stack traces unless there was a catch(Throwable), and then they could do something bizarre, non-standard, and undocumented (catching Throwable behaves weird). I've only kinda-sorta figured out a hack to get stack traces using JavaLoader.exe without breaking into the debugger, and it's barely worth it.

P.S,我现在做X平台开发与单个code-基地针对Android,黑莓和桌面。桌面是伟大的测试应用功能,用很少的黑莓设备上需要一次测试功能在桌面模拟工作(用于调试我们的游戏内置一个Swing GUI)。

p.s., I now do x-platform development with a single code-base targeting Android, Blackberry, and Desktop. Desktop is great for testing app functionality, with very little Blackberry on-device testing needed once features work in the desktop 'simulator' (a Swing GUI built for debugging our games).

这篇关于BlackBerry开发在Mac OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 16:11