Java 8+ JNI wrapper to the starship battery crate.
The library can be installed from the releases
repository on maven.lostluma.net in two variants:
default
: Downloads, validates, and caches the dynamic library on demand. Saves bandwidth and disk space.bundled
: Contains the dynamic library for all platforms. Recommended if first application startup may be offline.
The dynamic library comes prebuilt for the following platforms:
aarch64 | amd64 | riscv64 | |
---|---|---|---|
Linux | yes | yes | yes |
MacOS | yes | yes | |
Windows | yes | yes |
Running on other platforms is also possible, however some manual setup is required:
First build the project with Cargo, then set the battery.natives.path
system property to the file path.