jPBC provides also a wrapper on PBC. In this way all the computations can be delegated directly to
PBC still using the same interfaces provided by jPBC. To know how to initialize the pairing using the wrapper
go
here.
To do that you need to compile a shared library written in C. jPBC provide you a
cmake
style build configuration.
So, follow these instructions:
jpbc-pbc
folder and type in a shell the following:
ccmake .
Here is a screenshot of the shell.
Now press
c
and then
g
.
A
Makefile
file should be generated by cmake. Now in the shell type
make
The output should be:
If everything is ok in the
build
folder you'll have the shared library compiled.
Move the library to a system folder to be sure that java can see it. Have a look to the
"java.library.path" property to know where to place the library.