:- use_module(library(jpl)).
It should exactly match the version identifiers of JPL's Prolog (jpl.pl) and Java (jpl.jar) components.
jpl.pl
Example
?- jpl_c_lib_version(V). V = '7.4.0-alpha'.