基于iOS的JavaFX:生或死?[译]

来源:互联网 发布:淘宝借贷额度 编辑:程序博客网 时间:2024/03/29 06:41

原文:

Oracle's efforts to enable developers to run JavaFX software on Apple iOS devices could run afoul of Apple, if Apple's past rejections of Java on iOS are any guide. But a potential showdown could be a ways off, as it remains to be seen exactly how far Oracle goes with its plan and whether the arrangement will actually ruffle any feathers at Apple.

Oracle turned developers' heads last week, demonstrating a JavaFX-based game running on an IOS system at its JavaOne conference in San Francisco. The demonstration coincided with therelease of JavaFX 2.0, an update of the Java-based multimedia application platform targeted at a variety of devices and form factors.

[ A recent survey found Java slipping in popularity. | For more on Java, subscribe to InfoWorld's Enterprise Java newsletter. ]

In the past, Apple has balked at allowing the JVM (Java Virtual Machine) -- the core technology enabling Java to run on various platforms -- on its devices. But Oracle believes it is being compliant in its efforts to back JavaFX on iOS.

"The way this works is by linking the JVM into the program," says Adam Messinger, vice president at Oracle. "We know of a lot of iOS programs that are built this way with other languages besides Objective-C already today [and that] are being pushed through the [Apple] App Store."

Messinger added, in Oracle's configuration, the setup "looks like a statically linked libc linked into the program and that whole thing is installed on the phone." The combination of JavaFX and iOS has not been discussed with Apple, he says. But Apple has given clearance to run JavaFX on the Macintosh, and it has greenlit Oracle's HTML5 efforts pertaining to iOS. Oracle last week showed itsProject Avatar for dynamic rich clients, which has linked HTML5 and Java to iOS.

Developers weigh in on JavaFX's iOS prospects
Oracle's JavaFX-on-iOS plans remain in an early phase, with Oracle using the conference demonstration to gauge interest in supporting JavaFX on devices such as iOS, Android, and Windows 8. Apple did not respond to repeated requests for an interview for this article. But iOS application developer and author Christopher Allen, founder of the iPhoneWebDev developer community, has his doubts that Apple would approve of Oracle's efforts.

"I would be very surprised," if Apple approved, Allen says. "It goes against everything they've been trying to move toward."

"Their basic position is that they don't want the iPhone or ideally any of their platforms to be the least common denominator," Allen says. There has been a concern that interpreted languages will not offer the level of performance Apple wants for its devices, he explains. Also, the company specifically does not want its customers beholden to other company's deadlines and fixes, Allen says: "That's been kind of the problem with Flash."

Adobe is taking a similar tack as Oracle in getting Flash applications on iOS, with the Flash Player also not welcome on iOS devices. Adobe enables Flash applications to run on iOS via the Adobe Integrated Runtime (AIR), a superset of Flash Player for running Flash outside of a browser.

Meanwhile, Oracle's JavaFX-on-iOS efforts have been lauded by the Java community.

"I think it's extremely beneficial," says John Scattergood, software architect at Navis, which makes software to manage marine container terminals. But he added that he has a lot of questions about how Oracle is getting JavaFX onto iOS, given Apple's restrictions on code execution.


 

 

译文:

基于iOS的JavaFX:生或死?

       从苹果过去在其操作系统上排斥Java可以看出,甲骨文努力让开发商能够在Apple系统上运行JavaFX软件的行为可能与苹果公司相抵触。不过这个潜在的对立可能会消除,因为一切尚待分晓,要看甲骨文公司的计划会涉及多深远,并且要看其下一步是否会触及苹果的任何要害。
    甲骨文上周吸引了众开发者的目光,在旧金山的JavaOne会议上演示了能在苹果系统上运行的基于JavaFX的游戏。演示同时还发布了JavaFX2.0——Java多媒体应用平台的升级,目标在于更多样的设备和封装技术。

【最新调查发现Java正在慢慢普及。另外,有更多人订阅InfoWorld的企业Java新闻通讯。】
    过去,苹果一直回避安装JVM(Java虚拟机)——让Java能在各种平台上运行的核心技术。但是甲骨文公司相信通过他们的努力一定能实现JavaFX重回苹果系统的愿望。
    “这样做的方法是将JVM链接进程序,”甲骨文的副总裁Adam Messinger说,“我们知道苹果系统的很多程序都是以这种方式,用除Objective-C之外的其他语言编译的,现在已经在苹果店发售。”
    Messinger补充道,在甲骨文的架构中,安装“就像是一个静态链接库链接进程序,而这整个东西被安装到了手机上。”JavaFX与iOS的合作还没有跟苹果公司讨论过,Messinger如是说。但是苹果已经给出了在苹果机上运行JavaFX的突破口,这与甲骨文在HTML5上的努力有关。甲骨文上周展示了针对大量活跃客户端的Avatar计划,它将HTML5和Java链接到了苹果系统。

    开发者看重基于JavaFX的苹果系统前景
    甲骨文的JavaFX-on-iOS计划还处于起步阶段,甲骨文想通过这次会议演示,评估大家对设备(例如iOS,安卓,Windows8)支持JavaFX的兴趣。苹果对于本文的再三提问并未作出回应。但是苹果系统开发者和创始人Christopher Allen(iPhoneWebDev开发者社区的创始人)怀疑苹果是否会认同甲骨文的努力。
    “如果苹果认可这件事我会很惊讶,” Allen说,“这与他们一直努力的方向相违背。”
    “现在的基本局面是他们不想iPhone或任何其他理想平台来成为最小公分母,”Allen说。考虑到解释型语言无法满足苹果对设备的性能要求,他解释道。另外,苹果公司非常不希望他的顾客对别的公司的时效与维修表示感谢,Allen说道:“这就同Flash的问题一样。”
    Adobe公司采用和甲骨文公司一样的方法来让Flash应用在苹果系统上,虽然Flash播放器在苹果设备上并不受欢迎。Adobe公司通过AIR技术让Flash应用能运行在苹果系统上,这项技术是对Flash播放器的扩展,使其能在浏览器以外运行。
    同时,甲骨文公司的JavaFX-on-iOS计划受到了Java社区的赞扬。“我认为这项计划非常有好处,” Navis的软件工程师John Scattergood说,他主要从事海运集装箱码头的管理软件开发。但是他补充道,因考虑到苹果对编码执行的限制,所以他对甲骨文如何将JavaFX应用在苹果系统上有很多疑惑。

扩展:
least common denominator:最小公分母
Java虚拟机:
http://baike.baidu.com/view/374952.htm
JavaFX百度百科:
http://baike.baidu.com/view/951173.htm
InfoWorld's Enterprise Java:
http://www.infoworld.com/d/appli ... -and-android-174996

原创粉丝点击