In OSXConnector.java constructor I added exception message printing (please add that in your code also)
System.err.println("Could not load the library: "+e2.getMessage());
Now I see that it is not really the java.library.path issue but:
Could not load the library: true/private/var/folders/8v/8vvESm4IE6aGpWdxUlwtC++++TI/-Tmp-/libJSA.jnilib: no suitable image found.
Did find: /private/var/folders/8v/8vvESm4IE6aGpWdxUlwtC++++TI/-Tmp-/libJSA.jnilib: no matching architecture in universal wrapper
libJSA.jnilib is not in java.library.path
In OSXConnector.java constructor I added exception message printing (please add that in your code also)
System.err.println("Could not load the library: "+e2.getMessage());
Now I see that it is not really the java.library.path issue but:
Could not load the library: true/private/var/folders/8v/8vvESm4IE6aGpWdxUlwtC++++TI/-Tmp-/libJSA.jnilib: no suitable image found. Did find: /private/var/folders/8v/8vvESm4IE6aGpWdxUlwtC++++TI/-Tmp-/libJSA.jnilib: no matching architecture in universal wrapper libJSA.jnilib is not in java.library.path
file lib/osx/libJSA.jnilib lib/osx/libJSA.jnilib: Mach-O universal binary with 2 architectures lib/osx/libJSA.jnilib (for architecture ppc): Mach-O dynamically linked shared library ppc lib/osx/libJSA.jnilib (for architecture i386): Mach-O dynamically linked shared library i386
Are you planning to include Mach-O 64-bit x86_64architecture? I guess that is the issue in my case.