acm-header
Sign In

Communications of the ACM

ACM TechNews

Google Translates Java to Objective-C With J2objc Tool


View as: Print Mobile App Share:
Java logo

Credit: Oracle

Java developers can more easily build apps for the iPhone and iPad using a new open source command-line tool released by Google.

The J2ObjC tool is designed to translate Java code to Objective-C for the iOS platform. Google engineer Tom Ball says users will be able to write an application's non-UI code, such as data access or application logic, in Java, which can then be shared by Android apps, Web apps, and iOS. "J2ObjC enables Java code to be part of an iOS application's build, as no editing of the generated files is necessary," Ball says. "J2ObjC is not a Java emulator, but instead converts Java classes to Objective-C classes that directly use the iOS Foundation Framework."

The tool supports the full Java 6 language and most of its runtime features that are required by client-side application developers, as well as JUnit test translation and execution. It also can be used with most build tools, including Xcode and Make. Released as J2ObjC version 0.5, the tool is currently between alpha and beta quality, and Google has used it for several projects.

From eWeek 
View Full Article

Abstracts Copyright © 2012 Information Inc., Bethesda, Maryland, USA 


 

No entries found

Sign In for Full Access
» Forgot Password? » Create an ACM Web Account