Package it into the JAR file (if you're using Maven or Gradle this usually just means putting it under src/main/resources
).
On module startup, extract it to a temporary directory and call System.load
, or if that isn't possible because you're using a jank dependency that doesn't offer you control over the native library loading, extract it to $IGNITION/lib/core/gateway
, which is already on java.library.path
.