Using a Java library in an Objective-C Mac app, and putting that app on the Mac App Store
I've been researching this problem for a while now, and have not yet arrived at a clear answer. I am writing a Mac OSX application that I intend to eventually put on the app store, and while I will be able to write most of it in Objective-C, I do need to call methods from a library that is only available in Java. I have 2 questions:

1. From what I have read, it seems like JNI (using the [Invocation API][1]) is the only acceptable way of doing this (even though Apple deprecated the use of Java in Mac apps, and it isn't really acceptable). Is there any other way to do this?

2. I have read that Apple does not allow Java apps on the Mac App store, but will it allow a mostly-native app that uses JNI to incorporate some Java classes? Since JNI can be used to "package" a Java VM with the app, it seems as though Apple's cessation of including Java with OSX in the future shouldn't be an issue.

Your insight will be much appreciated. Thanks.  


  [1]: http://docs.oracle.com/javase/1.4.2/docs/guide/jni/spec/invocation.html
Using a Java library in an Objective-C Mac app, and putting that app on the Mac App Store
===

I've been researching this problem for a while now, and have not yet arrived at a clear answer. I am writing a Mac OSX application that I intend to eventually put on the app store, and while I will be able to write most of it in Objective-C, I do need to call methods from a library that is only available in Java. I have 2 questions:

1. From what I have read, it seems like JNI (using the [Invocation API][1]) is the only acceptable way of doing this (even though Apple deprecated the use of Java in Mac apps, and it isn't really acceptable). Is there any other way to do this?

2. I have read that Apple does not allow Java apps on the Mac App store, but will it allow a mostly-native app that uses JNI to incorporate some Java classes? Since JNI can be used to "package" a Java VM with the app, it seems as though Apple's cessation of including Java with OSX in the future shouldn't be an issue.

Your insight will be much appreciated. Thanks.  


  [1]: http://docs.oracle.com/javase/1.4.2/docs/guide/jni/spec/invocation.html