Stay organized with collections
Save and categorize content based on your preferences.
You can install OR-Tools for Java either from the Maven package
manager, build it from source or use the Java SDK archive.
The Maven option is easier, so we recommend it unless you plan to modify
the source code or customize the build.
Using Maven packages
The following guides explain how to use OR-Tools for Java using the
published Maven packages:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-28 UTC."],[[["\u003cp\u003eOR-Tools for Java can be installed using Maven packages, by building from source, or using binary distributions.\u003c/p\u003e\n"],["\u003cp\u003eThe Maven installation is the easiest method and is recommended unless modifications or customizations to the source code are needed.\u003c/p\u003e\n"],["\u003cp\u003eBuilding from source is required for using third-party solvers with OR-Tools.\u003c/p\u003e\n"],["\u003cp\u003eDetailed installation instructions for all methods are provided for Linux, macOS, and Windows operating systems.\u003c/p\u003e\n"]]],["OR-Tools for Java can be installed via Maven, building from source, or using a binary distribution. Maven is the recommended method unless source code modification or custom builds are needed. Using a third-party solver requires building from the source. Guides are provided for each installation method on Linux, macOS, and Windows. These guides cover using Maven packages, source installation, and binary distribution.\n"],null,["You can install OR-Tools for Java either from the Maven package\nmanager, build it from source or use the Java SDK archive.\nThe Maven option is easier, so we recommend it unless you plan to modify\nthe source code or customize the build.\n| **Note:** If you plan to use a third-party solver with OR-Tools, you need to build OR-Tools from source.\n\nUsing Maven packages\n\nThe following guides explain how to use OR-Tools for Java using the\npublished Maven packages:\n\n- [Using Maven package on Linux](/optimization/install/java/pkg_linux)\n- [Using Maven package on MacOS](/optimization/install/java/pkg_mac)\n- [Using Maven package on Windows](/optimization/install/java/pkg_windows)\n\nBuild from Source\n\nThe following guides explain how to build from source OR-Tools for Java\n:\n\n- [Source installation on Linux](/optimization/install/java/source_linux)\n- [Source installation on MacOS](/optimization/install/java/source_mac)\n- [Source installation on Windows](/optimization/install/java/source_windows)\n\nBinary distributions\n\nThe following guides explain how to install OR-Tools for Java from a\nbinary distribution:\n\n- [Binary installation on Linux](/optimization/install/java/binary_linux)\n- [Binary installation on MacOS](/optimization/install/java/binary_mac)\n- [Binary installation on Windows](/optimization/install/java/binary_windows)"]]