Skip to content

JNI bindings for the libfuzzy shared library, allowing efficient computation and comparison of ssdeep hashes from within Java applications.

License

Notifications You must be signed in to change notification settings

russellfrancis/jfuzzy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

jfuzzy

JNI bindings for the libfuzzy shared library, allowing efficient computation and comparison of ssdeep hashes from within Java applications.

Compilation

In order to compile this library, you will need the following tools installed on your system.

Install prerequisites on Debian

sudo apt-get install libfuzzy-dev build-essential openjdk-8-jdk maven

Compile JFuzzy

mvn install site

Usage

After a successful build, there will be two artifacts which are generated and necessary to use the JFuzzy JNI bindings. The first is /jfuzzy/target/jfuzzy-.jar, this contains the Java bindings and must be on the classpath of the Java application consuming the library. The second is /jfuzzy-native/linux/target/libfuzzy.so which is the native portion of the bindings. This shared library must be installed on the LD_LIBRARY_PATH used by Java.

An easy way to ensure that it is on the path is to pass the following system property to the JVM when it starts

java -Djava.library.path=/my/path/to/shared/lib -jar app.jar

Alternatively dropping it into /usr/local/lib or /usr/lib will also work in most cases.

About

JNI bindings for the libfuzzy shared library, allowing efficient computation and comparison of ssdeep hashes from within Java applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published