On Dec 19, 2009, at 2:10 PM, Landon Fuller wrote: > On Dec 19, 2009, at 2:02 PM, Eric Richardson wrote: > >> I also find that I can't get a simple swing app to work. Any ideas? > > It looks like I introduced a regression in fixing the OpenJDK-based > bootstrap; using DYLD_LIBRARY_PATH/DYLD_FALLBACK_LIBRARY_PATH is not going to > work on Darwin for both bootstrap and non-bootstrap use. > > I'll take a look into using @rpath/@executable_path as a possible alternative.
FYI: there is a bug in dyld that will cause different libraries with the same install_name to be loaded if they start with @rpath. I was bit by this when linking various jnilibs against libclient, but then running with libserver (who's install_name was @rpath/libclient.dylib). You might also want to consider using @loader_path instead of @executable_path, which is supported on 10.4 and higher. Cheers, Mike Swingler Java Runtime Engineer Apple Inc.