Converting an Objective C code into java code

15,689

Solution 1

You can try this thing: Objc2j

Solution 2

You should try O2J - Objective-C to Java source code translator from the Mac App Store. It is a cheap and very effective way to generate native Java code from your Objective-C.

Solution 3

Checkout out apportable. It's much better than trying to convert your source code to Java. Just leave it in Objective-C and use Apportable to run your code on other platforms.

Share:
15,689
Admin
Author by

Admin

Updated on June 22, 2022

Comments

  • Admin
    Admin about 2 years

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

  • Ravindranath Akila
    Ravindranath Akila over 10 years
    AFAIK needs a Mac. Please confirm before you go ahead with Windows!
  • Andremoniy
    Andremoniy over 10 years
    @RavindranathAkila It doesn't need a Mac, trust me.
  • Ravindranath Akila
    Ravindranath Akila over 10 years
    Hmmm... Even tried in Mac and failed. I noticed it can't work with GCD related code.
  • Ferran Maylinch
    Ferran Maylinch over 7 years
    Not working... it crashes easily or produces really bad code. O2J mentioned by @Cal seems to work better.
  • Ferran Maylinch
    Ferran Maylinch over 7 years
    Thank you. It's far from perfect but gives you some code to start with. And it's the only working solution I've found so far.
  • Ferran Maylinch
    Ferran Maylinch over 7 years
    It looks like it's dead :(