can't invoke FaCT++ in Java on Mac
Hello,
I've been having a lot of trouble invoking FaCT++ within a Java program on a Mac OS X (Yosemite 10.10.5). I believe the problem is with opening FaCTPlusPlusJNI.dll, but I haven't been able to figure out how to do so properly. Even when explicitly loading this file with System.load within the code, it returns:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/bada/Downloads/dtsarkov-factplusplus-75a3345f41e1/mavenreleaseowlapi4/src/main/resources/lib/native/64bit/FaCTPlusPlusJNI.dll: dlopen(/Users/bada/Downloads/dtsarkov-factplusplus-75a3345f41e1/mavenreleaseowlapi4/src/main/resources/lib/native/64bit/FaCTPlusPlusJNI.dll, 1): no suitable image found. Did find: /Users/bada/Downloads/dtsarkov-factplusplus-75a3345f41e1/mavenreleaseowlapi4/src/main/resources/lib/native/64bit/FaCTPlusPlusJNI.dll: unknown file type, first eight bytes: 0x4D 0x5A 0x90 0x00 0x03 0x00 0x00 0x00
Can you point me to some sample code, or do you have any suggestions? Let me know if you need any other info from me.
Thanks, Mike
Comments (2)
-
repo owner -
repo owner - changed status to closed
Close as no additional information had been provided for a while
- Log in to comment
Hmm, on a Mac OS X it should choose .jnilib rather than .dll file. Could you check the value o osgi.ach system property?