Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we run Java applications on iPhone? [closed]

Can we run or develop apps for iPhone in Java?

Have a look to these links and answer:

  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/
like image 372
SocialCircus Avatar asked Jul 28 '09 11:07

SocialCircus


People also ask

Can iPhone run Java apps?

Java is used by a lot of websites to create interactive elements and more. In order to view or use the parts of a website written in Java, Java must be installed on your device. However, iOS and Safari do not support Java.

Is Java good for iOS?

Despite its popularity and flexibility, Java is not a popular choice when it comes to iOS app development. However, if you already have an Android mobile application developed in Java, you should consider using the same programming language to create the iOS version.

Do Apple devices use Java?

All replies. There is no Java on iOS/iPadOS; Apple has not allowed the Java Virtual Machine to run on the platform. All apps need to be native apps that need to be available through the App Store with its own requirements.


2 Answers

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 - 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 - a translator to convert Java bytecode to C/Objective-C. Open source, but requires writing iOS specific code at the moment.

There are also several proprietary solutions but I have no experience with them. E.g. Software AG has a tool called web objects.

like image 134
gizmo Avatar answered Oct 02 '22 21:10

gizmo


Sun found they could port Java to the iPhone, but the SDK license prohibits it. So this is not a technical but a political issue.

like image 33
Thorbjørn Ravn Andersen Avatar answered Oct 02 '22 21:10

Thorbjørn Ravn Andersen