Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: [jna-users] Java 5 dependency on OSX



Timothy Wall wrote:

>Which I figured would be valid on any machine, but this is a symlink that
>resolves to Java 5 (on my dev machine) so I wind up with a library with
>the same problem. I confess to knowing next to nothing about linking
>dynamic libraries on OS X so am a bit stumped. Surely there must be a way
>of linking to 'the current version' ?

The linker appears to be resolving symlinks.  I don't know how to tell it
not to do that, so the obvious thing is to tell it to link specifically to
the 1.4.2/Libraries/libjawt.dylib.  Go look in
/System/Library/Frameworks/... and you'll see that 1.4.2 does have the
dylib, and there is a 1.4.2 on OS 10.3, so it should at least link and dyld
on 10.3.

I'm not saying I've tried this and it works, and I'm not saying the
resulting code will run (there may be other dependencies on Java 5), but it
seems like an obvious work-around that might work.

  -- GG


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

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.