Wow now the world is changing its view from being specific to its own standards to a stage where things can be Interoperable.

Google has done the same thing by introducing  J2ObjC a tool which converts Java to Object C Language.

We already have many tools which can do the same job, but the special thing about this tool is that it is developed by GOOGLE.

About J2ObjC

2ObjC is an open-source command-line tool from Google that translates Java code to Objective-C for the iOS (iPhone/iPad) platform. This tool 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 app’s non-UI code (such as data access, or application logic) in Java, which is then shared by web apps (using GWT), Android apps, and iOS apps.

J2ObjC supports most Java language and runtime features 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 is currently between alpha and beta quality. Several Google projects rely on it, but when new projects first start working with it, they usually find new bugs to be fixed. Apparently every Java developer has a slightly different way of using Java, and the tool hasn’t translated all possible paths yet. It’s initial version number is 0.5, which hopefully represents its release status correctly.

 

More Info….

Google has authored J2ObjC, an open-source tool that can convert all the non-UI bits of Java code into Objective-C source code for use in iOS apps. It’s not the first translator of this type we’ve ever seen, but coming from Google makes us have a serious look at this one.

Put away your fanboy hats for a moment, and stop caring which OS has more market share or which OEM sold the most phones last quarter. Mobile will be is the next frontier of tech — especially the Internet. Google building a robust and fully working tool to convert code for things like data access and program logic from Java to Obj-C is a big deal. This helps developers code once and port things to another platform with an automated tool, saving time and money.

Google has stated that several of their own products are using this (no, they don’t give specifics) and that it’s currently between alpha and beta quality. If you’re a developer, hit the source link to see all the requirements and helpful tips to get you started. If you’re not a developer, just know that things like this will make mobile applications and services better for everyone.

Courtesy: http://www.androidcentral.com, code.google.com

Posted by

Mahesh.P

Advertisements