On TV.com: Confession: I Like THE BIG BANG THEORY
BNET Business Network:
BNET
TechRepublic
ZDNet

July 9th, 2007

Apple sneaks Java support onto the iPhone

Posted by Ed Burnette @ 12:01 am

Categories: Community, General, Java, Programming, Sun

Tags: Apple iPhone, Java, Apple Inc., Ed Burnette

Despite public comments by Steve Jobs that “Java’s not worth building in [to the iPhone]“, it turns out that Apple did just that by using an ARM-based CPU that supports Java natively. Programmers cannot (yet) take advantage of this, but Apple could, if they wanted, ship a software upgrade to enable it.

Apple sneaks Java support onto the iPhone

Shortly after the iPhone went on sale, hardware enthusiasts started tearing into them to see what made them tick. They found that the iPhone is using an ARM1176JZF-based processor, probably the Samsung S3C6400 that operates at 667MHz. This chip sports an embedded Java acceleration engine called Jazelle. From the ARM web site:

ARM processors traditionally support two instruction sets; ARM state, with 32-bit instructions and Thumb state which compresses the most commonly used instructions into 16-bit format. The Jazelle technology extends this concept by adding a third instruction set, Java bytecode, to the capability of the processor, together with a new Java state.

ARM licenses the Jazelle Java Technology Enabling Kit (JTEK) to companies like Samsung and Nokia for use on phones and Blu-ray players. Jazelle provides high performance Java in up to 8x less RAM compared to software only approaches. Thanks to its recent acquisition of SavaJe, one of the licensees of this technology is Sun Microsystems (you may recall that the SavaJe portfolio forms the basis of JavaFX Mobile).

Another cool feature of Jazelle is its Multitasking Virtual Machine (MVM) technology. Desktop Java developers have been asking for this for years. Simply put, it’s a way to optimize running several Java applications at once with minimal overhead. Instead of the JVM starting up when the user plays a game or invokes some other Java application, the MVM is designed to start up when the device is switched on, run continuously and be transparent to the user. Each application is executed as if it were running on its own virtual machine, and isolated from the other applications.

Now, if Apple can just get over its anachronistic “Java is heavyweight” beliefs, then small, efficient, hardware-accelerated Java games and multimedia for your iPhone could be just a software upgrade away.

Ed BurnetteEd Burnette is a professional developer and author of several articles and books about computing including Hello, Android: Introducing Google's Mobile Development Platform, 2nd Edition. For disclosure of Ed's industry affiliations, click here or to view his full profile click here.

Email Ed Burnette

Subscribe to Dev Connection via Email alerts or RSS.

  • Talkback
  • Most Recent of 9 Talkback(s)
If the iPhone gets Java, I'll be buying my first iPhone right away
I develop a lot of software in Java. I looked at Objective-C and find it very unintersting, but would like to develop games and applications in Java, a language I know very well, to run on the iPhone... (Read the rest)
Posted by: AnonymouseCoward Posted on: 07/22/09 You are currently: a Guest | | Terms of Use
Now if only there was a way of installing apps on the iPhone...  Scrat | 07/09/07
Message has been deleted.  charles656oio@... | 07/09/07
. . . and what does this have to do with Java? (nt)  CobraA1 | 07/09/07
spam  John Zern | 07/09/07
Sloppy with words, or just lazily taking vendor claims?  WaltFrench@... | 07/09/07
Common usage  Ed BurnetteZDNet Moderator | 07/11/07
MVM  kevencage | 07/13/07
RE: Apple sneaks Java support onto the iPhone  mxvampire@... | 06/12/09
If the iPhone gets Java, I'll be buying my first iPhone right away  AnonymouseCoward | 07/22/09

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
Click Here

Recent Entries

Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

Enterprise Applications

  • Check out some of the easiest and most powerful ways to boost productivity while saving money on your application infrastructure. See ZDNet's comprehensive Enterprise Application resource center, now!
  • New Online Dashboard
  • Read about top issues IT decision-makers face every day, plus get cost effective solutions to real life IT problems. Oracle Topline