Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling .jar routines from a C program



On 01/04/06, M. Carlson <email@hidden> wrote:
> On Sat, 1 Apr 2006 18:35 Finlay Dobbie wrote:
>
> >Search for JNI on developer.apple.com
>
> Yes, that is what brought about my question. The JNI seems to allow a Java
> app to call C. The ADC examples I could find all show creating a Java app,
> and calling C from it. But I have a C program that needs to call Java
> routines that are in a .jar file. How is JNI used to do this?

JNI allows for both native code calling Java and Java calling native code.
More specifically on ADC:
<http://developer.apple.com/samplecode/JavaSplashScreen/JavaSplashScreen.html>
<http://developer.apple.com/samplecode/simpleJavaLauncher/simpleJavaLauncher.html>

 -- Finlay
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Calling .jar routines from a C program (From: "Finlay Dobbie" <email@hidden>)
 >Re: Calling .jar routines from a C program (From: "M. Carlson" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.