| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
We have our own java launcher, based on the simpleJavaLauncher sample code. Before it creates and invokes the JVM it loads one of our JNI libraries, call it libFoo.jnilib, so as to call one of its methods. It does this using NSCreateObjectFileImageFromFile(), NSLinkModule(), NSLookupSymbolInModule(), etc. Later our Java code calls System.loadLibrary() for libFoo.jnilib, which loads a second copy of the library (verified with 'info sharedlibrary dyld' in gdb). Is there any way to get System.loadLibrary() to recognise that libFoo.jnilib is already loaded and use that copy rather than loading it again?
| References: | |
| >Getting System.loadLibrary to use an already loaded JNI library (From: Mike Richmond <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.