Eclipse on OpenJDK
David Green
dgreen99 at gmail.com
Thu May 21 22:34:52 PDT 2009
Kurt,
setting DYLD_FALLBACK_LIBRARY_PATH did the trick!
Thanks for your help,
David
On Wed, May 20, 2009 at 3:29 PM, Kurt Miller <kurt at intricatesoftware.com>wrote:
> David Green wrote:
> > I'm working on getting Eclipse to run on the bsd port of OpenJDK out of
> > the box. Currently I'm working on a couple of issues with Eclipse
> > itself, one of which has me a little puzzled and I'm thinking that
> > someone here might be able to shed some light.
> >
> > The issue (https://bugs.eclipse.org/bugs/show_bug.cgi?id=276763) is
> > related to launching the VM using JNI. I've patched the Eclipse
> > launcher to load the right libjvm.dylib using dlopen, however I'm
> > getting the following error as discussed in comment #7
> > <https://bugs.eclipse.org/bugs/show_bug.cgi?id=276763#c7>:
> >
> > Error occurred during initialization of VM
> >
> > Unable to load native library:
> >
> dlopen(/Users/dgreen/Documents/packages/jdk7-32bit-2009-05-08/jre/lib/i386/libjava.dylib,1):
> > Library not loaded: libjvm.dylib
> >
> > Referenced from:
> >
> >
> /Users/dgreen/Documents/packages/jdk7-32bit-2009-05-08/jre/lib/i386/libjava.dylib
> >
> > Reason: image not found
> >
> >
> > Is it possible to launch the VM using this method or should I be trying
> > to launch it using exec()?
> >
> >
> > Any help would be much appreciated.
>
> Hi David,
>
> In the exec() case I see that there is some APPLE specific code in:
>
>
> http://hg.openjdk.java.net/bsd-port/bsd-port/jdk/file/4fef42eb432c/src/solaris/bin/java_md.c
>
> Perhaps try having eclipse set DYLD_FALLBACK_LIBRARY_PATH instead of
> LD_LIBRARY_PATH.
>
> Regards,
> -Kurt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090521/c6018503/attachment.html
More information about the bsd-port-dev
mailing list