aspose file tools
The moose likes iOS and the fly likes Using Java jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Using Java jar file" Watch "Using Java jar file" New topic

Using Java jar file

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
Is it possible to use a java jar file for iPhone development. I have an app for android and I want to use my business classes in the iPhone app rather than rewriting those classes. I am just trying to estimate effort for iPhone development given the fact that I am a Java developer and it will take me a while to learn objective C to begin with.

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300

Short answer is no.

I've not run across anything that will allow Objective-C to talk to Java directly. There are some project efforts out there to allow cross compilation of one intermediate language to the binary language of each native platform but this has more to do with the logic that controls screen navigation, etc than it does with pure business logic.

GenRocket - Experts at Building Test Data
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42952
Gregg Bolinger wrote:I've not run across anything that will allow Objective-C to talk to Java directly.

For OS X, there's the Rococoa library (on, but it still requires a JVM.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Using Java jar file