Need advice about which tool to choose?Ask the StackShare community!
J2ObjC vs JUniversal: What are the differences?
What is J2ObjC? Java to iOS Objective-C translation tool and runtime used by Google Inbox to share 70% of its code across Android, iOS, and Web. 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.
What is JUniversal? A new, Java-based approach to cross-platform mobile apps (used by Google Inbox and Google Spreadsheets). The vision of JUniversal came from some guys at Nokia who possess considerable expertise both in Java and in building cross-platform apps. They built this tool to provide an elegant way to translate source code and make it useful across multiple platforms. JUniversal offers you the freedom to write your shared code in Java and then translate it to C# (available now) or to C++/Objective C++ (coming soon). You can also combine JUniversal with Google’s j2objc translator to translate Java to Objective-C for iOS.
J2ObjC and JUniversal can be categorized as "Cross-Platform Mobile Development" tools.
J2ObjC and JUniversal are both open source tools. It seems that J2ObjC with 5.47K GitHub stars and 771 forks on GitHub has more adoption than JUniversal with 132 GitHub stars and 22 GitHub forks.
Pros of J2ObjC
- Backed by Google4
- Made it possible to quickly port a hardware driver1
- Access to existing Java libraries1