views:

1002

answers:

7

Hi All,

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:-

LINK 1

LINK 2

LINK 3

This is an Open discussion.
All ideas are appreciated.

Thank You All.

+2  A: 

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.

gizmo
Thank You @gizmo,Plz Have a look to the third link.There is no compiler!
socialCircus
The third link is about developing iPhone *web applications*. That is, web sites which you access using MobileSafari.
sarnesjo
Might be a little off topic, but I can't help adding this remark: I wonder what is going to happen to Apple in, say, 2-3 years with Android rapidly gaining more and more ground ...
A: 

I would say: No

If you want to create "real" native iPhone applications you will have to go with Objective C and the iPhone SDK

There are other ways like http://phonegap.com/ but I personally have no experience with this project.

Thomas Einwaller
Thank You Thomas.Because You have extended it to web development.I have got experience in web dev for iPhone using JS.
socialCircus
A: 

there is an implementation of a java virtual machine called "Classpath", but the drawback is that you may only get it using Cydia/Installer.

Means, you need to jailbreak your iphone in order to be able to install the JVM.

the gui can be designed like an AWT-Gui.

in general: no solution (apple does not allow applications that run other applications on their devices)

if you don't mind hacking the devices your application is deployed to: yes, there shouldn't be a big problem. there is a large amount of tutorials how to hack your iphone, if you're interested...

EDIT: there is a problem! If you don't have the file libuicaboodle every Java-GUI-App for iPhone is looking for, you won't be able to run the app. Is there anybode who still has this file? Can't find it anywhere anymore :o(

regards

Atmocreations
On the other hand, the iphone is pretty useless unless its jailbroken anyway ;-)
Brimstedt
agree. :o) hehe
Atmocreations
+3  A: 

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.

Thorbjørn Ravn Andersen
A: 

Webapp can be developed in Java of course, but you're not allowed to run Java applications ON the Iphone (VMs are not authorized on the device).

There is some effort in Java to objective-c conversion, as with XMLVM (check the Google TechTalk video).

fg
A: 

At the end what I can conclude is that one can develop iPhone web apps easily with Java. For developing native apps for iPhone in Java one may use alcheMo or XMLVM with a little working.I have no experience in alcheMo or XMLVM but surely looking forward to it.

Thank You All.

socialCircus
A: 

there is several ways to write an iphone application on java by using xmlvm converter to objective c but is hard but it is the suitable and the compatible way to do ur application u need to learn xml language

faisal