5 Language bindings

GNU libextractor works immediately with C and C++ code. Bindings for Java, Mono, Ruby, Perl, PHP and Python are available for download from the main GNU libextractor website. Documentation for these bindings (if available) is part of the downloads for the respective binding. In all cases, a full installation of the C library is required before the binding can be installed.

5.1 Java

Compiling the GNU libextractor Java binding follows the usual process of
running configure and make. The result will be a
shared C library libextractor_java.so with the native code and
a JAR file (installed to $PREFIX/share/java/libextractor.java).

A minimal example for using GNU libextractor's Java binding would look
like this: