11 messages in net.java.dev.jna.usersFwd: [jna-users] Java 5 dependency on...
FromSent OnAttachments
Chris SewartJul 28, 2007 6:14 am 
Timothy WallJul 28, 2007 8:31 pm 
Timothy WallJul 28, 2007 8:39 pm 
Timothy WallJul 29, 2007 11:38 am 
Michael HallJul 29, 2007 2:13 pm 
Timothy WallJul 29, 2007 2:40 pm 
Timothy WallJul 30, 2007 1:34 pm 
Timothy WallJul 30, 2007 1:47 pm 
Michael HallJul 30, 2007 2:04 pm 
Chris SewartJul 31, 2007 4:13 am 
Timothy WallJul 31, 2007 7:38 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Fwd: [jna-users] Java 5 dependency on OSXActions...
From:Timothy Wall (twal@dev.java.net)
Date:Jul 29, 2007 2:40:57 pm
List:net.java.dev.jna.users

From the apple java-dev list:

Begin forwarded message:

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