• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling .jar routines from a C program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling .jar routines from a C program


  • Subject: Re: Calling .jar routines from a C program
  • From: "M. Carlson" <email@hidden>
  • Date: Sat, 01 Apr 2006 19:34:08 +0000

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?


(Sorry for being a bit clueless, I'm new to this...)

-Matt


From: "Finlay Dobbie" <email@hidden> Reply-To: email@hidden To: "M. Carlson" <email@hidden> CC: email@hidden Subject: Re: Calling .jar routines from a C program Date: Sat, 1 Apr 2006 18:35:54 +0100

On 01/04/06, M. Carlson <email@hidden> wrote:
> I've been given a .jar file and now need to interface to it from a C
> program.
>
> The functions in the .jar file are fairly simple: they take two double
> arguments, and return a double.
>
> Are there any examples anywhere showing how to set this up and do this on OS
> X?


Yes. Search for JNI on developer.apple.com

 -- Finlay


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Calling .jar routines from a C program
      • From: "Finlay Dobbie" <email@hidden>
    • Re: Calling .jar routines from a C program
      • From: Scott Anguish <email@hidden>
References: 
 >Re: Calling .jar routines from a C program (From: "Finlay Dobbie" <email@hidden>)

  • Prev by Date: Re: NSArrayController/NSManagedObject Runtime Error: 'Selector Not Recognized'. What Selector?
  • Next by Date: Re: Calling .jar routines from a C program
  • Previous by thread: Re: Calling .jar routines from a C program
  • Next by thread: Re: Calling .jar routines from a C program
  • Index(es):
    • Date
    • Thread