Mailing Lists: Apple Mailing Lists

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

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



Begin forwarded message:

From: "Chris Sewart" <email@hidden>
Date: July 28, 2007 9:14:53 AM EDT
To: email@hidden
Subject: [jna-users] Java 5 dependency on OSX
Reply-To: email@hidden

I've been trying to get JNA running on a Mac running 10.3. As soon as I call anything I get an exception trying the load the JNA libjnidispatch.jnilib. It seems that this has been linked with the AWT dynamic library, but seems to be trying to load it from:

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Libraries/libjawt.dylib

This works fine when Java 5 is installed, but on 10.3 it won't be. 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 am a bit stumped. Surely there must be a way of linking to 'the current version' ?

Has anybody else got JNA running on a Mac that doesn't have Java 5 installed?

Thanks,

Chris

p.s. JNA is a great library by the way: Once I 'got' how to use it, calling the odd bits of native code I need has been a breeze. Thanks!



Timothy Wall http://abbot.sf.net


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