Welcome!

Wireless Authors: Maureen O'Gara, John Hornsby, John Savageau, Yeshim Deniz, Onkar Singh

Related Topics: Java

Java: Article

Java on the iPhone?

No one can predict how Java applications will be on the iPhone; will Apple even allow the JVM to exist?

Christopher Humphries' Blog

Sun is planning on releasing a JVM version for the iPhone - apparently the plan is to first include Java ME with multi-touch interface support, with rumors of Java SE support coming later (mentioned on Mac rumor sites).

I personally think this is an amazing idea. I think the iPhone is a great platform for the future of mobile computing, and developers should be free to develop applications for the world in Java.

This will open up a big market for the iPhone for not just games, yet also many applications for business. Many existing applications can be ported over and allow for better adoption with not just Apple geeks, yet for business people.

Other than the lack of keyboard, I believe this is what’s holding back the iPhone. It needs to be able to do all the things the Blackberry can do for a business person. At the end of the day, work needs to get done. No matter how fancy an interface or how easy it is to use, nothing else matters as much as that.

While there are many that still carry the Java FUD machine around wherever Java is mentioned, no one can predict how Java applications will be on the iPhone. I believe that it depends on the application. We will just have to wait and see what comes of it.

  • Will Apple even allow the JVM to exist?
  • If the JVM is allowed, will things like Ruby on the JVM come next for quick application development?

There are so many questions and it’s very exciting to think about. Only time will tell if the right choices get made or will Apple vendor lock the device and keep its precious iPhone all to itself…

More Stories By Christopher Humphries

Christopher Humphries is a software developer. Currently he works for BurstNET Technologies, Inc. He has worked for DevIS and Pointone in the past, as well as some other companies and consulting contracts. Hkis current techy passions right now are Catalyst, Perl and Mac - he's currently working on writing a Perl book.

Comments (3) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
Don Babcock 03/11/08 09:20:28 AM EDT

I'd go so far as to say that the iPhone is THE platform for the future of mobile computing. I'm a J2ME developer. I loved the combo of Netbeans and SDK's until I ran into the "brick wall" fortifications that the telcos have erected to deny the ability to develop for their platforms for all but the most well heeled "partners." Steve Jobs has wonderfully liberated us with the advent of the iPhone SDK. From my perspective, Java has always been "hampered" by the degree of difficulty in building robust and intuitive UI's. You can easily invest the MAJORITY of your development time in the UI as opposed to the actual application code proposition. Any of the J2ME emulators/debuggers that I've looked at and used don't hold a candle to the ones built into the iPhone SDK. From my perspective, it will be MUCH better to just learn Cocoa and the SDK rather than try to use Java. Java on the iPhone would be interesting for the underlying coding but the UI elements available to ANY of the J2ME distributions are WOEFULLY inadequate in comparison to those that are built into the iPhone. Understand, I'm a JAVA/Windows developer moving to the Apple development world and while I'm intrigued by the idea of Java on my favorite mobile device, I'm not sure folks really realize the genius of the iPhone UI paradigm.

I initially chafed at the idea of "safari only" development until I did my first iPhone app and had it in the web apps catalog in about ONE WEEK! Ther is no way that I could have repeated even that simple app and gotten it to market in SIX months, let alone one week given all of the NSTL/Code Signing/ etc. etc. barriers that all of the other folks put in your way. If you don't believe me, read the whole sorry saga at http://www.j2mesecrets.com where I chronicle the sorry state of the J2ME "real" world. Thankfully, Jobs has stood up to the telco tyranny and we at last may see them "crack" under the huge competitive pressures brought to bear by the liberation of all of the frustrated mobile development talent out there. By the end of the year, I predict that iPhones will have eclipsed RIM and the Blackberry, if not in total market share, then certainly in applications and developer mindshare. The latter, if you recall, is why Windows "won" over the likes of OS/2. More developers in the game means more apps.

As big a fan as I am of Java and J2ME, I'm not sure that it wouldn't be a "step down" compromise for the iPhone. Unless the J2ME can fully integrate with the emulator and be fully enfranchised in terms of the UI components so that you can't tell the difference, I'd be against it. I'm a Java fan but having experienced the richness and ease of use of the device for a few weeks now, I'd be very unhappy with a "plain jane" SWT JAVA app compared to the rich and visually appealing UI that you get with the Apple SDK. I think most cusomers would as well and the LAST thing they'll tolerate is something that brings their iPhone "down" to the level of all the others out there. I doubt that Sun has anywhere near the quality of SDK required to play in the iPhone world.

Lest you think me an Apple "fan boy", for the record I don't yet own a Mac. However, after watching the video of how the iPhone SDK works and since that SDK only plays on Macs, I'm going to drop a thousand on a Mac Book. It's well worth the investment just to play in the iPhone world. The apparent quality of the SDK is so superior to anything out there in the ME world that I'll EASILY recoup the investment in development time alone and that includes learning from SCRATCH Cocoa and Objective C (not that big a challenge for a Java jock.) Yes. I'd like to be able to code in Java to save myself a bit of learning curve but when you consider how much time is spent in UI coding vs the rest of the app, my gut tells me that being able to leverage all of the built in iPhone widgets and built in API's (which is unlikely in Java) will more than make up for the little bit of Cocoa that I'll have to learn to do the things that are the unique value add of my code.

If you haven't watched the Apple iPhone SDK tutorials, give them a look and then compare them to what you know in the J2ME space. If you are like me, you'll want the full package andnot some "slap a JVM into the iPhone so we can do SWT apps" solution.

Amlan 03/10/08 08:16:55 PM EDT

In an ideal world java would be the only language on iPhone. The arcane objective c that apple tries to push is simple not worth the effort for many developers to waste time learning unless it's on many many platforms or apple holds 90% market share. Neither of which is the case. Also simply the number of mobile java and brew (c++) developers outnumber objective-c developers by a huge ratio. So the only reason I can think of is Apple not willing to pay any money for it in royality to Sun. If thats the case, I dont blame them, Sun screwed them pretty bad for Java SE on Mac. But they could have still done something about it. The only losers are the customer and developers.

Jody Mitoma 03/09/08 04:42:26 PM EDT

I really don’t understand why they don’t slap in a JavaVM option in the Safari Mobile options menu - and allow us to turn it on and off at will.