Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Load Mac-Framework / native library?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Load Mac-Framework / native library?



Hi Tobias,

I typically use Native.loadLibrary (com.sun.jna.Native) to load native frameworks with Rococoa, like this (to load WebKit.framework):

    public static interface WebKit extends Library {
        public final static WebKit INSTANCE = (WebKit) Native.loadLibrary("WebKit", WebKit.class);
    }

(make sure you have a reference to the instance, so that the library is loaded)


If you still have problems, I suggest you ask over at the Rococoa (email@hidden) or JNA (email@hidden) mailing lists, as they can probably provide more specific answers to your problem.

Best regards,

-- 
Harald K


On 19. nov. 2010, at 09.21, Tobias Bley wrote:

Does anybody know how to load a native frame (e.g. Sparkle.framework) from Java? Can I use System.loadLibrary?

In my case I generated a java wrapper for Sparkle (http://sparkle.andymatuschak.org/) with Rococoa (https://rococoa.dev.java.net/). That works fine, but I don't know how to load the Sparkle.framework, because there is no dylib or something similar.

Best regards,
Tobi

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

This email sent to email@hidden

References: 
 >Load Mac-Framework / native library? (From: Tobias Bley <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.