Chapter 4. Downloading and building Red Hat Build of OptaPlanner examples

You can download the Red Hat Build of OptaPlanner examples as a part of the Red Hat Build of OptaPlanner sources package available on the Red Hat Customer Portal.

Note

Red Hat Build of OptaPlanner has no GUI dependencies. It runs just as well on a server or a mobile JVM as it does on the desktop.

Procedure

  1. Navigate to the Software Downloads page in the Red Hat Customer Portal (login required), and select the product and version from the drop-down options:

    • Product: Red Hat Build of OptaPlanner
    • Version: 8.38
  2. Download Red Hat Build of OptaPlanner 8.38 Source Distribution.
  3. Extract the rhbop-8.38.0-optaplanner-sources.zip file.

    The extracted org.optaplanner.optaplanner-8.38.0.Final-redhat-00004/optaplanner-examples/src/main/java/org/optaplanner/examples directory contains example source code.

  4. To build the examples, in the org.optaplanner.optaplanner-8.38.0.Final-redhat-00004 directory enter the following command:

    mvn clean install -Dquickly
  5. Change to the examples directory:

    optaplanner-examples
  6. To run the examples, enter the following command:

    mvn exec java