Google Makes it Easier to Port Java Code to Objective-C

Google has just released J2ObjC, an open-source tool that can convert Java code to Objective-C code.

For those who are not aware of this fact, Java is the native language in which Android applications are—usually—written. Likewise Objective-C is the language of choice for Apple’s platforms, iOS and OS X.

This open source software simplifies porting code written for Android, or otherwise written in Java, to Apple’s iOS platform. While on Android the Java code runs on a virtual machine—the Dalvik Virtual Machine—this tool does not simply generate Java bytecode and run it on a Java VM in iOS. Rather it converts Java code to Objective-C code which can then be used as part of a larger Objective-C application.

The purpose of this tool is to make it easy to share non-UI code between application for iOS and Android, or simply to use Java code as part of an iOS application. It supports a majority of Java 6 features including “exceptions, inner and anonymous classes, generic types, threads and reflection.”

You can find out more about J2ObjC from its Google Code page.

2 thoughts on “Google Makes it Easier to Port Java Code to Objective-C”

  1. There is a new rewards program out to encourage developers to
    create s40 apps.

    The League of Developers http://www.developerleague.com/?pcode=LOD1&src=10002

    is offering Cash prizes worth more than 10000 every month and a chance to win a Nokia Lumia 920 every three months.
    The League of Developers gives developers a chance to avail the benefits of winning reward points at each step. Develop S40 apps and join the League of Developers today.

Leave a Comment

Your email address will not be published. Required fields are marked *