我们可以在iPhone上运行Java应用程序吗? [英] Can we run Java applications on iPhone?

查看:671
本文介绍了我们可以在iPhone上运行Java应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以用Java运行或开发适用于iPhone的应用程序吗?

Can we run or develop apps for iPhone in Java?

查看这些链接并回答:


  1. http://www.iphonefaq.org/archives/9731

  2. http: //www.j2mepolish.org/cms/leftsection/documentation/platforms/iphone.html

  3. http://www.ibm.com/developerworks/opensource/library/os-eclipse-iphone/

  1. http://www.iphonefaq.org/archives/9731
  2. http://www.j2mepolish.org/cms/leftsection/documentation/platforms/iphone.html
  3. http://www.ibm.com/developerworks/opensource/library/os-eclipse-iphone/


推荐答案

目前,iPhone上没有运行JVM。这意味着你必须用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应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆