Skip to content

ibmsoe/jniloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jniloader

Simple (for the end user) native library loader.

The static method in JniLoader enables developers to ship native libraries in jar files which are extracted and loaded at runtime, making native loading transparent for the end-user (as long as they are on a platform supported by you).

Native libraries can also be placed in java.library.path for slightly faster startup times (tens of milliseconds during JVM startup).

Installation

The latest release is available from Maven Central, e.g.:

<dependency>
  <groupId>com.github.fommil</groupId>
  <artifactId>jniloader</artifactId>
  <version>1.1</version>
</dependency>

Snapshots are distributed on Sonatype's Snapshot Repository:

<dependency>
  <groupId>com.github.fommil</groupId>
  <artifactId>jniloader</artifactId>
  <version>1.2-SNAPSHOT</version>
</dependency>

If the above fails, ensure you have the following in your pom.xml:

    <repositories>
        <repository>
            <id>sonatype-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

Donations

Please consider supporting the maintenance of this open source project with a donation:

Donate via Paypal

Contributing

Contributors are encouraged to fork this repository and issue pull requests. Contributors implicitly agree to assign an unrestricted licence to Sam Halliday, but retain the copyright of their code (this means we both have the freedom to update the licence for those contributions).

About

Lightweight convenience for loading JNI natives

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages