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 <email@hidden> wrote:

>> > I fiddled about with the makefile to try and get
> it to link to:
> >
> >   
>
/System/Library/Frameworks/JavaVM.framework/Libraries/libjawt.dylib
> >
> > 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
>

It would seem to me that a dynamic load should search
on a symbol and not be tied to a specific absolute
path library but I could be wrong. Not that familiar
with that stuff. 
Where are the make and ant build files? I just did a
little quick looking around and didn't see them.
The JWS version of the dispatch library seemed a
little more immediately accessible to see what it's
dependcies were

 otool -L libjnidispatch.jnilib
libjnidispatch.jnilib:
       
/Users/twall/Development/ws/jna/build/native/libjnidispatch.jnilib
(compatibility version 0.0.0, current version 0.0.0)
       
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
(compatibility version 1.0.0, current version 87.0.0)
       
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjawt.dylib
(compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility
version 1.0.0, current version 88.3.3)

It also seems to have a specific user lib dependency
/Users/twall that probably shouldn't work either it if
actually needs to be found on the users machine?

For the current libjawt.dylib difficulty what about
CurrentJDK

ls -l
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/libjawt.*
-rwxr-xr-x   1 root  wheel  46432 Jan  8  2007
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/libjawt.dylib
lrwxr-xr-x   1 root  wheel     13 Nov 16  2006
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/libjawt.jnilib
-> libjawt.dylib

 _______________________________________________
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

References: 
 >Fwd: [jna-users] Java 5 dependency on OSX (From: Timothy Wall <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.