问题描述
我们可以用Java运行或开发适用于iPhone的应用吗?
实际上我有点困惑......
Can we run or develop apps for iPhone in Java?
Actually I am a bit confused...
请耐心等待,看看这些链接并回答: -
Please bear with me,have a look to these links and answer:-
这是公开讨论。
所有想法都表示赞赏。
This is an Open discussion.
All ideas are appreciated.
谢谢大家。
推荐答案
目前,没有运行JVM iPhone。这意味着你必须用Java开发iPhone应用程序的唯一方法是使用一个编译器将你的java代码编译成Objective-C代码。
Currently, there is no JVM running on the iPhone. This means that the only way you have to develop apps for iPhone in Java is to have a compiler that will compile your java code down to Objective-C 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.
这篇关于我们可以在iPhone上运行Java应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!