cryptobiu/scapi — pull request #19 by muelli (2014-09-08 11:13:59+00:00)
Title: Makefile: added OpenSSL's libcrypto to the JNI_PATH which becomes the LD...

..._LIBRARY_PATH

It was failing for me like this:

➜ scapi-memcpy git:(memcpy) ✗>./install/scapi/bin/scapi DlogExample
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/scapi-memcpy/install/scapi/libOpenSSLJavaInterface.so: libcrypto.so.1.1.0: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at edu.biu.scapi.primitives.dlog.openSSL.OpenSSLAdapterDlogEC.(OpenSSLAdapterDlogEC.java:129)
at DlogExample.main(DlogExample.java:16)
➜ scapi-memcpy git:(memcpy) ✗>

After added the path of libcrypto to the LD_LIBRARY_PATH, it worked better.