With Google being the ever innovative company and its developers of the platform and applications for it being just as innovative, it was only a matter of time before this appeared. This you may be wondering is J2ObjC, a way to convert the Java methods in your Android application over to Objective C so that all you have to worry about is UI design. This in itself seems somewhat helpful and UI design on iOS is somewhat challenging for the fact that it will be like no other UI design you have attempted before. Enough of our rambling, check out the quote of what J2ObjC really is below and leave us a comment to let us know what you think.
J2ObjC 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.