Cross-platform native library loading for Java 17+ — Windows, Linux, macOS
import fastcore.FastCore;
// Load a native library
FastCore.loadLibrary("fastrobot");
// Check platform
if (FastCore.isWindows()) {
System.out.println("Running on Windows");
}
// Get platform info
System.out.println(FastCore.getPlatformInfo());- Cross-platform — Windows (.dll), Linux (.so), macOS (.dylib)
- Automatic extraction — Native libraries from JAR to temp
- Smart loading — System path first, fallback to extracted
- Zero dependencies — Pure Java
Download the latest JAR directly:
Browse all releases: Releases page
Maven:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.andrestubbe</groupId>
<artifactId>fastcore</artifactId>
<version>v1.0.0</version>
</dependency>Gradle:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.andrestubbe:fastcore:v1.0.0'
}See COMPILE.md for build instructions.
Part of the FastJava Ecosystem — Making the JVM faster.