| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Kusti, Here's a checklist for you. JNI libraries must be: -Built as Dynamic Libraries in Xcode (MACH_O_TYPE mh_dylib). Libraries of any other type (e.g. Static) do not load. -Built as universal binaries. PowerPC libraries do not load on Intel-based Macs, nor vice-versa. See Technical Q&A QA1295, 'Java on Intel-based Macs'. -Named libFoo.jnilib, where Foo is the name passed to System.loadLibrary -Placed in a loadable library path. Possible paths include: - The Java Resources subdirectory of your application bundle (e.g. YourApp.app/Contents/Resources/Java) - The working directory at launch time (i.e. user.dir) - A Java extension directory listed in Technical Q&A QA1170, 'Important Java Directories on Mac OS X' - The Mac OS X dynamic library search path explained at http://developer.apple.com/documentation/DeveloperTools/Conceptual/DynamicLibraries/Articles/DynamicLibraryUsageGuidelines.html You can also set the java.library.path system property at application launch time to specify an alternate installation path. If your library fits all of these criteria it should be loading. Feel free to send it along if it still does not after reviewing this list. /* Matt Drance | Sharing Technologies Evangelist Worldwide Developer Relations Turn the next big thing from Apple into the next big thing from you WWDC 2007 | June 11-15, San Francisco */ On Apr 2, 2007, at 11:21 AM, Kustaa Nyholm wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden This email sent to email@hidden
| References: | |
| >Debuggin JNI UnsatisfiedLinkError (From: Kustaa Nyholm <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.