From: Greg Guerin <glgu...@amug.org>
Date: July 29, 2007 4:56:55 PM EDT
To: java...@lists.apple.com
Subject: Re: [jna-users] Java 5 dependency on OSX
Timothy Wall wrote:
That shouldn't be there. Where exactly did it show up?
In the output of 'otool -L libjnidispatch.jnilib'. It's the JNI-lib's
reference to itself. The first lib listed.
It might not matter, if the JNI-lib isn't intended to be linked to
other
JNI-libs. For a long time I had a JNI-lib that had a self-name that
was its
build-location, and it worked fine no matter where I placed it.
It might work if it's not a symlink (which it usually is); you'd want
the path to be the current JRE, though, not the current JDK (unless
the JDK is always installed by default, which I doubt).
Well, the Makefile you have now is "assuming" there's a
CurrentJDK. It's
OK, though, because that dir *is* always installed by default on
Mac OS X.
The problem remains, however, that CurrentJDK is still a symlink, and
symlinks seem to be getting resolved at link-time, not load-time or
runtime.
In your Makefile you now have this:
LIBDIR=$(SDKROOT)/System/Library/Frameworks/JavaVM.framework/
Versions/CurrentJDK/Libraries
I suggest changing it to a specific Java version that exists on
10.3, namely:
LIBDIR=$(SDKROOT)/System/Library/Frameworks/JavaVM.framework/
Versions/1.4.2/Libraries
There are versions of Java 1.4.2 for 10.3, but some folks may not
have it.
TN2110 lists Java and corresponding OS versions:
<http://developer.apple.com/technotes/tn2002/tn2110.html>
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (Java...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/twall%40users.sf.net
This email sent to twa...@users.sf.net