JNA might be a simpler way to call native functions: https://github.com/twall/jna
-- Eirik On 2/22/14, 8:51 AM, "Paul Taylor" <paul_t...@fastmail.fm> wrote: >I think Im having problems with AppNap with my application, although it >is difficult to understand when/if it is kicking in. > >'The correct way to disable App Nap is to use the -[NSProcessInfo >beginActivityWithOptions:reason:] and -[NSProcessInfo endActivity] APIs >within your app via JNI, and only when your app is actually doing work.' >- Mike Swingler > >Has anything been done to disable AppNap from java without having to use >JNI > >Paul >