File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 15302

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: 42965
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.
I agree. Here's the link:
subject: Using Java jar file
It's not a secret anymore!