aspose file tools*
The moose likes Java Micro Edition and the fly likes Java ME & iOS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Java ME & iOS" Watch "Java ME & iOS" New topic
Author

Java ME & iOS

Kolina Miouri
Greenhorn

Joined: Jan 21, 2011
Posts: 7

Hi
Is there any way to run Java ME applications on iOS ( Apple products like iPad , iPod , iPhone ) ??
Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
No. The probability of Java ever running on iOS are just about zero.


Ping & DNS - updated with new look and Ping home screen widget
Kolina Miouri
Greenhorn

Joined: Jan 21, 2011
Posts: 7

I heard somethings about a tool called XMLVM . What is that ??
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
What did you learn during your web search for that term?
Kolina Miouri
Greenhorn

Joined: Jan 21, 2011
Posts: 7

I read this on Internet :

" It looks like you write your code in Java, then use the Javac compiler (or another Java compiler) to compile the code down to Java byte code (.class files).
You then run these class files through the XMLVM cross compiler to generate the compiled objective C code that can run on iPhones "
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
So you didn't actually search for the term "XMLVM"? Why not?
Kolina Miouri
Greenhorn

Joined: Jan 21, 2011
Posts: 7

In the site for XMLVM ( www.xmlvm.org ) is said that :

" The goal of XMLVM is to offer a flexible and extensible cross-compiler toolchain. Instead of cross-compiling on a source code level, XMLVM cross-compiles byte code instructions from Sun Microsystem's virtual machine and Microsoft's Common Language Runtime. The benefit of this approach is that byte code instructions are easier to cross-compile and the difficult parsing of a high-level programming language is left to a regular compiler. In XMLVM, byte code-based programs are represented as XML documents. This allows manipulation and translation of XMLVM-based programs using advanced XML technologies such as XSLT, XQuery, and XPath "

But I am a newbie
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
Note that it does not mention JME at all, just "Java bytecode". There seem to be some Android->iPhone conversion tools and libraries, but it looks like those do not support sizable portions of the Android API.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

The other thing it says it that it converts it to Microsoft's CLR code, nothing about iPhones. Microsoft doesn't make the iPhone. ;)

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
Mark Spritzler wrote:The other thing it says it that it converts it to Microsoft's CLR code, nothing about iPhones.

I interpret the sentence to mean that it converts CLR bytecodes as well as JVM bytecodes. The next paragraph on the web site seems to bear this out. There you'll also see that the iPhone (via Objective-C) is indeed a target.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15662
    
  15

Please note that being able to cross-compile is only part of the story. Before Oracle got all snotty, I would have simply stated that both J2ME and Android were Java. Now, thanks to the lawyers I have distinguish the "Java" on Android as Dalvik.

But regardless, you can't recompile an Android Dalvik program under the J2ME Java compiler and expect it to run under J2ME. The source code may be compatible, and you may be producing acceptable J2ME bytecodes instead of Dalvik code, but the underlying OS's are so radically different that it won't even begin to function.


Customer surveys are for companies who didn't pay proper attention to begin with.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

If you want to do iOS development, pay yourself a favor in stick with Apple's stack of supported technologies.
If you know Java you will be surprised how productive you are in Objective-C.
David La Motta
Greenhorn

Joined: Sep 01, 2011
Posts: 4
No, unless iOS gets official support for a JVM. You can, however, use GWT4Titanium-Mobile (http://www.emitrom.com/gwt4timobile) and make an attempt to port the J2ME app to iOS. With GWT4Ti-Mobile you write your iOS app in Java, and ultimately it gets translated to native code. There are more details and tutorials at the URL mentioned before. The community is pretty active, so you're bound to get any help you may need to get this going.


Co-Founder, Emitrom LLC
Bringing Java APIs to the world of iOS, Flex, Touch and more.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
In the interest of full disclosure it needs to be said that David la Motta's email address makes it seem that he's at least affiliated with the product he links to.

@David: If that's the case, you should put something to that effect in your signature, lest it appears that you're giving impartial advice.
David La Motta
Greenhorn

Joined: Sep 01, 2011
Posts: 4
@Ulf No intent in hiding anything, just a simple oversight to having a blank sig. Thanks for pointing it out.
Lehel Sipos
Greenhorn

Joined: Oct 30, 2012
Posts: 5
Maybe you would like to try:
http://www.m-gwt.com/

Developing mobile applications with GWT and mgwt.

mgwt works on all kind of mobile devices that support webkit (like iPhone, iPad, iPod, Android, Blackberry, ...)

Best regards,
Lehel
David La Motta
Greenhorn

Joined: Sep 01, 2011
Posts: 4
We (Emitrom) just announced Lienzo, which allows your mobile app to work on all devices that support canvas. Web-kit's fragmentation has been a major pain point, and now with Lienzo that pain-point is gone. Lienzo bears an Apache 2 license, so it is gratis.

Lienzo is a pure GWT implementation of canvas. Pair it with our Cordova binding and you can develop canvas-based mobile apps; then turn around and deploy it using Air4j and your app is now a desktop-based app; or run it on the web, out of App Engine like our examples do.

We are in alpha right now; working hard to get more features in. With Lienzo, your imagination is the limit.

http://www.dzone.com/links/javas_future_lays_in_lienzo.html

Full disclosure: I'm co-founder @ Emitrom.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java ME & iOS
 
Similar Threads
ipad and ios
HTML5 for iOS and Android - Questions
well JAVA may also used? together(with Obj-C) or Java alone
Looking for part time work on Android and ios Application development
May involved in Ipad app development, JAVA, I mean along with obj-C...?