new problem: libjava.dylib: image not found -- but it is there
dgreen99 at gmail.com
Mon Jan 18 19:22:42 PST 2010
I built JDK7 today based on these instructions
I'm experiencing the same problem.
On Mon, Jan 18, 2010 at 6:39 PM, Ugo Kanain <ugokanain at 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:
> 1): Library not loaded:
> Referenced from:
> 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
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the bsd-port-dev