Sun Veterans Create SDK for Native Java on the iPhone

Codename One, an Israel-based startup founded by two former Sun Microsystems engineers, is developing a new software development kit (SDK) designed to allow Java developers to create native applications for multiple mobile/tablet platforms.

Still in beta, the company's namesake SDK (free download here) supports development on iOS, Android, Blackberry and Windows 7, among other device platforms.

The tool is Java-based, open source and lightweight. It's designed to translate Java byte code to C/Objective-C code on the company's cloud servers, and then to compile the resulting source code to native applications using X-code on cloud-based Mac machines. The result, the company says, is iTunes-compliant applications.

The SDK combines IDE plugins, a visual design tool, simulators for phones and tablets and an API. The company describes its API as "a vast abstraction of mobile device platforms" combines with "rich portable functionality."

According to the company, developerscan use Codename One to create all components from scratch, instead of using native widgets, helping to avoid fragmentation. The company argues that this approach also supports more accurate desktop simulation of mobile apps.

The company's two founders, Chen Fishbein and Shai Almog, have some notable experience in this area. Fishbein began developing the Lightweight User Interface Toolkit (LWUIT) as an internal project for Sun. The project was launched to address the challenge of writing "appealing cross platform mobile applications," according to the java.net project summary.

Almog joined the effort, which was announced in 2008. Sun open sourced the project, licensing under the GPL with ClassPath Exception. LUWIT, better known as the Lightweight UI Toolkit for Java ME, is now a subproject of the Mobileandembedded project.

"Chen and I are thrilled to be releasing this transformational technology that is filling a growing demand among mobile developers," Almog said in a statement, "The wasteful reality of having to develop the same app multiple times due to the variety of operating systems in the market is coming to a close. With Codename One, developers can write applications just once and run them everywhere."

The Codename One SDK is still in beta. The company plans to add "very extensive" Java 5 features in an upcoming version, including generics, enums, and annotations, among others. It can be downloaded free from the company website here.

About the Author

John K. Waters is a freelance author and journalist based in Silicon Valley. His latest book is The Everything Guide to Social Media. Follow John on Twitter, read his blog on ADTmag.com, check out his author page on Amazon, or e-mail him at john@watersworks.com.


Reader Comments:

Thu, Jul 26, 2012

To the previous post - that's a very narrow minded view - there's a lot more to tool selection than syntax! Of course most programmers can pick up most other languages, that hardly means they should! You obviously don't understand the problem domain that tools like Codename One, nor it's competitors, are there to solve.

Thu, Jul 26, 2012

Most of the languages in use today bear a striking resemblance to each other, which is hardly surprising since they're mostly C derivatives. Most developers I know can turn their hand to more than one language, so I don;t really see the need for this. Always better to understand the platform you're developing on!

Thu, Jul 26, 2012

Who needs that? How about Java developers that prefer to use their native programming language to target platforms that don't normally support Java for example? Believe it or not, there's a hell of a lot of people that don't want to develop 'native' apps using HTML and Javascript.

Thu, Jul 26, 2012

Will be curious to see how this works. True there is PhoneGap along with many other multiple SDK's that claim to do the same. Ultimately I think it will come down to developer preferences as far as choosing what SDK to use to create once run anywhere apps.

Wed, Jul 25, 2012

who needs that when we've got PhoneGap?

Add Your Comment Now:

Your Name:(optional)
Your Email:(optional)
Your Location:(optional)
Comment:
Please type the letters/numbers you see above