iOS Developers - J2ObjC
iOS Developers - J2ObjC
Projects Evaluated
FlexyCore/in-the-box
iOS port of Dalvik VM and Android APIs Rejected: non-standard L&F, iOS license conflicts
XMLVM
Many translation bugs Significant pieces of JRE missing Java -> ObjC translation no longer supported
java2objc (code.google.com)
Syntax translation only, output won't build Project in early dev., abandoned
J2ObjC
J2ObjC is a new source translator/compiler. Converts Java source code to Objective C
Foundation Framework focus No editing needed
Has an open-source JRE (subset) runtime Translates, builds and links with iOS app Run within Xcode or on command-line
Debug with Xcode or GDB
What is Supported?
Full Java 6 syntax (Java 7 coming) Inner and anonymous classes Exceptions, try/catch/finally Static variables Enums Autoboxing Synchronization Fields use Objective C properties JSNI-style native code embedding Java collections JUnit test translation ...
JRE
Based on Apache Harmony, Android source Similar subset as GWT
java.lang, java.lang.reflect java.io (subset) java.util, java.util.logging, java.util.concurrent java.math, java.nio (subset)
Garbage Collection
finalize method mapped or generated Not supported on iOS
More Information
Project site: http://j2objc.googlecode.com
Downloads Documentation wiki Full source code Issues