Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: OpenJDK 1.7 under OS/X and question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenJDK 1.7 under OS/X and question



On Nov 30, 2010, at 1:22 PM, Pratik Solanki wrote:

> On Nov 30, 2010, at 12:13 AM, Henri Gomez wrote:
>
>> Error: could not find libjava.dylib
>
> Can you print out what dlerror() is saying right after the failed dlopen() call? The error messages from dlerror() are quite helpful.
>

Looking at <http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot/file/cb4c4684b314/src/os/bsd/launcher/java_md.c>, I see that the VM is actually trying to find libjava.dylib itself and is complaining that it can't find it. Its not dlopen() that is failing. Invoking java on the command line executes /usr/bin/java which then execs the real java in your OpenJDK bundle. My guess is the code in java_md.c is getting confused somehow and thinks that the main application is /usr/bin/java and not the one in the OpenJDK bundle and tries to find libjava.dylib relative to that. Debug that code and you may be able to figure out the issue.

Pratik


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >OpenJDK 1.7 under OS/X and question (From: Henri Gomez <email@hidden>)
 >Re: OpenJDK 1.7 under OS/X and question (From: Michael Hall <email@hidden>)
 >Re: OpenJDK 1.7 under OS/X and question (From: Henri Gomez <email@hidden>)
 >Re: OpenJDK 1.7 under OS/X and question (From: Pratik Solanki <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.