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: UnsatisfiedLinkError's




On Jul 3, 2007, at 6:48 PM, Greg Guerin wrote:



I think you'll have to use 'install_name_tool' on the dylib files, and set
it to "@loader_path" instead of "@executable_path".



Bingo. Although the 'self' reference seems ok executable_path.

install_name_tool -change @executable_path/libnspr4.dylib @loader_path/libnspr4.dylib libplc4.dylib
dialup-4:~/mozilla/release/dist/jrex_gre mjh$ otool -L libplc4.dylib
libplc4.dylib:
@executable_path/libplc4.dylib (compatibility version 1.0.0, current version 1.0.0)
@loader_path/libnspr4.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.10)
dialup-4:~/mozilla/release/dist/jrex_gre mjh$ java -cp . TestLoad libplc4.dylib


Mike Hall        hallmike at att dot net
http://www.geocities.com/mik3hall
http://sourceforge.net/projects/macnative



_______________________________________________
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: 
 >Re: UnsatisfiedLinkError's (From: Greg Guerin <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.