如何创建“Hello World”在java中为iPhone应用程序? [英] How do I create a "Hello World" application in java for an iphone?
问题描述
我想使用Java为iPhone创建一个基本的Hello World风格的应用程序 - 谁能告诉我怎么做?
I'd like to create a basic "Hello World" style application for the IPhone using Java - can anyone tell me how?
推荐答案
您无法使用Java for iPhone进行编码。 iPhone仅支持C / C ++ / Objective-C - Cocoa。
You can't code in Java for iPhone. The iPhone only supports C/C++/Objective-C - Cocoa.
但是,在当前许可下,您可以使用生成此类代码的翻译工具。
有几种解决方案可以做到这一点:
However, under the current license you can use translation tools that generate such code. There are several solutions that do exactly that:
Codename One - 专注于使用Java和可视化工具和模拟器构建应用程序。带有SaaS后端的开源,无需使用Mac。
Codename One - focuses on building applications using Java with visual tools and simulators. Open source with a SaaS backend that removes the need for a Mac.
XMLVM - 将Java字节码转换为C / Objective-C的转换器。开源,但目前需要编写iOS特定代码。
XMLVM - a translator to convert Java bytecode to C/Objective-C. Open source, but requires writing iOS specific code at the moment.
还有几种专有解决方案,但我没有经验。例如。 Software AG有一个名为web对象的工具。
There are also several proprietary solutions but I have no experience with them. E.g. Software AG has a tool called web objects.
这篇关于如何创建“Hello World”在java中为iPhone应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!