基於iOS的JavaFX:生或死?[譯]

原文:

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 the release 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 its Project 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

發佈了112 篇原創文章 · 獲贊 24 · 訪問量 54萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章