Google releases a Java to iOS Objective-C translator


Google releases a Java to iOS Objective-C translator

Google has released an open source toolkit that could make it easy for developers to port their Android apps to Apple iOS platform.

The company has made available a Java to iOS Objective-C translator through their Google Code platform.

Google said:

J2ObjC enables Java code to be part of an iOS application’s build, as no editing of the generated files is necessary. The goal is 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 (using GWT), and iOS. J2ObjC is not a Java emulator, but instead converts Java classes to Objective-C classes that directly use the iOS Foundation Framework. It supports the full Java 6 language and most of its runtime features that are required by client-side application developers, including exceptions, inner and anonymous classes, generic types, threads and reflection. JUnit test translation and execution is also supported. J2ObjC can be used with most build tools, including Xcode and Make.