Packages Google OR-Tools as a self-extracting jar file at Maven coordinates com.skaggsm.ortools:ortools-natives-all:8.0.8283
.
There are two types of existing solutions: those that require the natives to be bundled manually, and those that bundle natives and extract them on-demand:
Solutions prior to this were of the former variety and were difficult to use and deploy, prone to human error, and infrequently updated.
The new official solution borrows code for the simple classpath case from this project, but does not handle more complex classpaths.
This solution is a superset of the official solution; it handles more complex classpaths.
com.skaggsm.ortools:ortools-natives-all:8.0.8283
in your build tool of choice// Somewhere before using OR-Tools classes
OrToolsHelper.loadLibrary();
Before using, ensure the system meets the minimum requirements for installing OR-Tools.
Basic requirements: >= Java 8
Basic requirements: >= Java 11
Confirmed working versions:
OpenJDK Runtime Environment 18.9 (build 11.0.7+10)
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
OpenJDK Runtime Environment GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02)
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.2+10)
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK Runtime Environment AdoptOpenJDK (build 13.0.2+8)
Java(TM) SE Runtime Environment (build 13.0.2+8)
Confirmed NOT working versions:
Java(TM) SE Runtime Environment 18.9 (build 11.0.7+8-LTS)
More information here: #10.
This library is divided into several modules:
ortools-loader
ortools-natives-all
ortools-natives-linux
ortools-natives-macos
ortools-natives-windows
Native library lifecycle:
OrToolsHelper.loadLibrary();
called