I am using a Windows 10 OS and try to get JPBC (Pair-Based Cryptographie) running, as explained here: http://gas.dia.unisa.it/projects/jpbc/buildHowto.html#.WVlWQ4jyhhE . The installation worked well for the libraries and now I am having a bunch of folders, including .jar and .java files in my local maven repo .m2\repository\it\unisa\dia\gas. One of the files is jpbc-pbc for instance but there are more
Now I imported a project from gradle that needs some of those files. This projects includes the line
System.loadLibrary("jpbc-pbc");
Now, this throws an error:
Could not load library jpbc-pbc. JCPABE will be extremely slow.
java.lang.UnsatisfiedLinkError: no jpbc-pbc in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at cpabe.Cpabe.<clinit>(Cpabe.java:24)
at cpabe.demo.DemoForCpabe.main(DemoForCpabe.java:63)
My path variable links to C:\Program Files\Java\jdk1.8.0_131 . Now whatever I try, putting the .jar into it or the src folder or both or whatever, I receive this error. What am I doing wrong?
Folder structure of jpbc-pbc is
jpbc-pbc
/2.0.0
//jpbc-pbc-2.0.0.jar
/src
//main (and so on)
//test (and so on)
/CMakeLists.txt
/FindGMP.cmake
/FindPBC.cmake
/maven-metadata-local.xml
/pom.xml