native-loader

An utility tool to load native libraries

License

License

Harium Commercial License
Categories

Categories

Native Development Tools
GroupId

GroupId

com.harium
ArtifactId

ArtifactId

native-loader
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

native-loader
An utility tool to load native libraries

Download native-loader

How to add to project

<!-- https://jarcasting.com/artifacts/com.harium/native-loader/ -->
<dependency>
    <groupId>com.harium</groupId>
    <artifactId>native-loader</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.harium/native-loader/
implementation 'com.harium:native-loader:1.0.4'
// https://jarcasting.com/artifacts/com.harium/native-loader/
implementation ("com.harium:native-loader:1.0.4")
'com.harium:native-loader:jar:1.0.4'
<dependency org="com.harium" name="native-loader" rev="1.0.4">
  <artifact name="native-loader" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.harium', module='native-loader', version='1.0.4')
)
libraryDependencies += "com.harium" % "native-loader" % "1.0.4"
[com.harium/native-loader "1.0.4"]

Dependencies

compile (1)

Group / Artifact Type Version
com.harium.util : os-detector jar 1.0.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Native Loader

An utility tool to load native libraries

It uses https://github.com/adamheinrich/native-utils to load libraries from a jar (if your application is a single jar). It also uses a custom implementation to load libraries from outside the jar.

How to use it

  1. Add native-loader to your pom.xml

    <dependency>
        <groupId>com.harium</groupId>
        <artifactId>native-loader</artifactId>
        <version>1.0.4</version>
    </dependency>
    
  2. Load your library

    NativeLoader.load("hello");
    
  3. Place your files into a folder based on OS name.

    /libs/natives/os_name/os_arch

    E.g:

    Windows 32 bits:

    /libs/native/windows/i586
    

    Linux 64 bits:

    /libs/native/unix/x86_64
    
com.harium

Harium

Versions

Version
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0