# OR-Tools for Java

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.

> [!NOTE]
> **Note:** If you plan to use a third-party solver with OR-Tools, you need to build OR-Tools from source.

## Using Maven packages

The following guides explain how to use OR-Tools for Java using the
published Maven packages:

- [Using Maven package on Linux](https://developers.google.com/optimization/install/java/pkg_linux)
- [Using Maven package on MacOS](https://developers.google.com/optimization/install/java/pkg_mac)
- [Using Maven package on Windows](https://developers.google.com/optimization/install/java/pkg_windows)

## Build from Source

The following guides explain how to build from source OR-Tools for Java
:

- [Source installation on Linux](https://developers.google.com/optimization/install/java/source_linux)
- [Source installation on MacOS](https://developers.google.com/optimization/install/java/source_mac)
- [Source installation on Windows](https://developers.google.com/optimization/install/java/source_windows)

## Binary distributions

The following guides explain how to install OR-Tools for Java from a
binary distribution:

- [Binary installation on Linux](https://developers.google.com/optimization/install/java/binary_linux)
- [Binary installation on MacOS](https://developers.google.com/optimization/install/java/binary_mac)
- [Binary installation on Windows](https://developers.google.com/optimization/install/java/binary_windows)