wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Using Java jar file" Watch "Using Java jar file" New topic
Author

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.

Thanks
Imad
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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
Marshal

Joined: Mar 22, 2005
Posts: 41626
    
  55
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 dev.java.net), but it still requires a JVM.


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: Using Java jar file