Re: JNI and bundles...
Re: JNI and bundles...
- Subject: Re: JNI and bundles...
- From: Andrea -XFox- Govoni <email@hidden>
- Date: Fri, 18 Nov 2005 11:44:11 +0100
Chas Spillar ha scritto:
> I have a application with a jnilib which works fine if I put this library in
> the /Library/Java/Extensions folder or run the application through XCode.
> However, I would like to put it in the application bundle in
> Contents/Resources/Java.
>
> Unfortunately, I am unable to get it to work in this location. I have set
> NSNeedsJava and indicated the Java root as Contents/Resources/Java and
> listed the library in the info.plist. With this setup, it works in XCode
> but does not work when run independently (unless I move the library to
> /Library/Java/Extensions).
Assuming you are developing a Java application, can you have your
application print out the value of Java system property java.library.path?
IIRC, the path to the folder that contains the jnilib should be in
java.library.path's value.
To print out the value of java.library.path you could:
System.out.println(System.getProperties().getProperty("java.library.path"));
--
Andrea "XFox" Govoni
ICQ UIN: 43488185
AIM/iChat: email@hidden
Yahoo! ID: xfox82
Skype Name: draykan
PGP
KeyID: 0x212E69C1
Fingerprint: FBE1 CA7D 34BE 4A53 9639 5C36 B7A0 605F 212E 69C1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden