Re: Include external jar
Re: Include external jar
- Subject: Re: Include external jar
- From: Felix Franz <email@hidden>
- Date: Mon, 9 May 2005 15:28:38 +0200
Hi Raheel,
I guess your app is written in Objective-C:
- put your jar as a resource in your app-bundle.
- preferable in a + initialize-method:
// get the Java virtual machine:
NSJavaVirtualMachine* jvm = NSJavaSetupVirtualMachine();
// set the class path:
NSJavaClassesFromPath(
[NSArray arrayWithObject:
[[NSBundle mainBundle] pathForResource: @"foo.jar" ofType:
nil]],nil,YES,&jvm);
HTH,
Cheers,
felix
On May 9, 2005, at 7:56 AM, Raheel Ahmad wrote:
I am trying to include an external jar file for some Java library
functions that I need to use in my app. If I put the jar file in
/Library/Java/Extensions everything works fine but how do I include in
my app?
Thanks.
_______________________________________________
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
_______________________________________________
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