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.
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