j2objc 0,2,5,0,2,4,0,4 travis-ci

A Java to iOS Objective-C translation tool and runtime.

2 years after Apache-2.0

J2ObjC: Java to Objective-C Translator and Runtime

Build Status

Project site: http://j2objc.org
J2ObjC blog: http://j2objc.blogspot.com
Questions and discussion: http://groups.google.com/group/j2objc-discuss

What J2ObjC Is

J2ObjC is an open-source command-line tool from Google that translates Java source code to Objective-C for the iOS (iPhone/iPad) platform. This tool enables Java source 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 application logic and data models) 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 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. If you run into issues with your project, please report them!

What J2ObjC isn't

J2ObjC does not provide any sort of platform-independent UI toolkit, nor are there any plans to do so in the future. We believe that iOS UI code needs to be written in Objective-C, Objective-C++ or Swift using Apple's iOS SDK (Android UIs using Android's API, web app UIs using GWT, etc.).

J2ObjC cannot convert Android binary applications. Developers must have source code for their Android app, which they either own or are licensed to use.


  • JDK 1.8 or higher
  • Mac workstation or laptop
  • OS X 10.11 or higher
  • Xcode 7 or higher


This library is distributed under the Apache 2.0 license found in the LICENSE file with the following exceptions. The protocol buffers library is distributed under the same BSD license as Google's protocol buffers. See README and LICENSE.

Related Repositories



SquiDB is a SQLite database library for Android and iOS ...



J2ObjC Gradle Plugin: enables Java source to be part of an iOS application's bui ...



A curated list of awesome Gradle plugins and resources for a better development ...



A sample showing how to use a Reversi game engine in an iOS app using J2ObjC. ...



GraphHopper road routing engine for iOS ...

Top Contributors

tomball kstanger lukhnos sjkirby mthvedt Limvot danieldickison ianroth advayDev1 Buggaboo cgdecker alvaroramirez gianlucabertani MarcImbert cushon mark5422 tamird cpovirk dmaclach jorgbrown kluever lowasser


-   1.1 zip tar
-   1.0.2 zip tar
-   1.0.1 zip tar
-   1.0.0 zip tar
- zip tar
- zip tar
- zip tar
-   0.9.8 zip tar
-   0.9.7 zip tar
- zip tar
-   0.9.6 zip tar
-   0.9.5 zip tar
-   0.9.4 zip tar
-   0.9.3 zip tar
-   0.9.2 zip tar
-   0.9.1 zip tar
-   0.9 zip tar
-   0.8.8 zip tar
-   0.8.7 zip tar