j2objc

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

  • 所有者: google/j2objc
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

J2ObjC: Java to Objective-C Translator and Runtime

Project site: https://j2objc.org
J2ObjC blog: https://j2objc.blogspot.com
Questions and discussion: https://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.

Requirements

License

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

Running on GNU/Linux

To build and run on GNU/Linux, install the Darling project, then following its Compile and Run a Program example. Please note that j2objc is only supported on iOS/macOS.

主要指标

概览
名称与所有者google/j2objc
主编程语言Java
编程语言Makefile (语言数: 14)
平台
许可证Apache License 2.0
所有者活动
创建于2014-01-30 20:19:56
推送于2025-09-04 15:50:46
最后一次提交2025-09-04 08:48:19
发布数42
最新版本名称3.1 (发布于 )
第一版名称0.8.7 (发布于 2014-01-30 16:38:13)
用户参与
星数6k
关注者数284
派生数1k
提交数6k
已启用问题?
问题数1138
打开的问题数67
拉请求数949
打开的拉请求数22
关闭的拉请求数437
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?