I built JDK7 today based on these instructions http://wikis.sun.com/display/OpenJDK/Darwin9Build
I'm experiencing the same problem. David On Mon, Jan 18, 2010 at 6:39 PM, Ugo Kanain <ugokan...@newsguy.com> wrote: > I have been unable to use openjdk because of the same issue. This seems to > be a problem with how it was built on 10.5 (though the intel flavor seems to > have been more successful than the ppc). On another > thread<http://mail.openjdk.java.net/pipermail/bsd-port-dev/2010-January/001064.html>, > Mike > suggests using the LC_RPATH compiler directive. Though I wasn't able to make > it work. > > > On 18 Jan 2010, at 18:02 , Stephen Bannasch wrote: > > My mlvm build process (http://gist.github.com/243072) now completes but > when I test it by having Java display it's version > there is an error because the dynamic library: libjvm.dylib fails to load. > > [sources]$ ./build/bsd-i586/j2sdk-image/bin/java -version > Error occurred during initialization of VM > Unable to load native library: > dlopen(/Users/stephen/dev/java/src/bsd-port/build/bsd-i586/j2sdk-image/jre/lib/i386/libjava.dylib, > 1): Library not loaded: > libjvm.dylib > Referenced from: > /Users/stephen/dev/java/src/bsd-port/build/bsd-i586/j2sdk-image/jre/lib/i386/libjava.dylib > Reason: image not found > > But the library appears to be there: > > [sources]$ ls -l build/bsd-i586/j2sdk-image/jre/lib/i386/libjava.dylib > -rwxr-xr-x 1 stephen staff 152708 Jan 18 18:49 > build/bsd-i586/j2sdk-image/jre/lib/i386/libjava.dylib > > I'm wondering if there is some circular reference because of the error > message -- it appears to be saying that libjava.dylib > itself couldn't load libjava.dylib ??? > > What tools can I use to check the validity of a dylib? > > Thanks for any tips. > > > > > >