4

I have some web service stored in a .jar file. I need to integrate the .jar file in my iOS application. Is it possible?

If yes, can anyone help me out with it?

Rizwan Shaikh
  • 2,824
  • 2
  • 27
  • 49
  • 1
    Possible duplicate of [Which Java to Objective-C converter have you used and what problems did you encounter?](http://stackoverflow.com/questions/4185334/which-java-to-objective-c-converter-have-you-used-and-what-problems-did-you-enco) – Ben Mar 29 '16 at 11:35
  • can you run that logic on a server? – Wain Mar 29 '16 at 11:40

2 Answers2

3

I need to integrate the .jar file in my iOS application. Is it possible?

No.

There's no JRE officially available for iOS, so you can not use your Java code directly.

You may want to look for multi-platform developer solutions like Xamarin if you want to re-use your existing logic, but I personally don't recommend it.

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
0

If we are talking about .jar file as archive that contains some data (XML files): Yes it is possible to extract them. But running some business logic that is written in Java certainly not because of missing of JRE.

Biffen
  • 6,249
  • 6
  • 28
  • 36
Oleg Gordiichuk
  • 15,240
  • 7
  • 60
  • 100