jfuzzy-native-parent

The native parent pom for the libfuzzy JNI bindings.

License

License

Categories

Categories

Native Development Tools
GroupId

GroupId

io.github.russellfrancis
ArtifactId

ArtifactId

jfuzzy-native-parent
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

pom
Description

Description

jfuzzy-native-parent
The native parent pom for the libfuzzy JNI bindings.

Download jfuzzy-native-parent

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.russellfrancis/jfuzzy-native-parent/ -->
<dependency>
    <groupId>io.github.russellfrancis</groupId>
    <artifactId>jfuzzy-native-parent</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.russellfrancis/jfuzzy-native-parent/
implementation 'io.github.russellfrancis:jfuzzy-native-parent:1.0.0'
// https://jarcasting.com/artifacts/io.github.russellfrancis/jfuzzy-native-parent/
implementation ("io.github.russellfrancis:jfuzzy-native-parent:1.0.0")
'io.github.russellfrancis:jfuzzy-native-parent:pom:1.0.0'
<dependency org="io.github.russellfrancis" name="jfuzzy-native-parent" rev="1.0.0">
  <artifact name="jfuzzy-native-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='io.github.russellfrancis', module='jfuzzy-native-parent', version='1.0.0')
)
libraryDependencies += "io.github.russellfrancis" % "jfuzzy-native-parent" % "1.0.0"
[io.github.russellfrancis/jfuzzy-native-parent "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.0.0