Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting an Objective C code into java code [closed]

Is there any tool available to convert objective C code into java ?

like image 689
User Avatar asked Mar 30 '11 06:03

User


People also ask

How to convert Java code to Objective-C?

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.

Can Java be converted to C?

Yes, there's a Java to C source converter: a human programmer. (Reliability may be an issue, though.) If you really want to compile Java to C, you might try compiling Java to machine code with GCJ, then disassembling the machine code, then (somehow?) converting the assembly code to C.

Can I use Objective-C in Android?

In addition to the compiler you'll also need the Objective-C runtime, which exists open-source as libobjc2 and works on Android. With this, and using GNUstep as an implementation of the Objective-C frameworks (i.e. Foundation) you can absolutely use Objective-C code on Android.


1 Answers

You can try this thing: Objc2j

like image 111
Andremoniy Avatar answered Oct 20 '22 18:10

Andremoniy