Chapter 4. Downloading and building OptaPlanner examples


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

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.29
  2. Download Red Hat Build of OptaPlanner 8.29 Sources.
  3. Extract the rhbop-8.29.0-red_hat_build_of_optaplanner-sources.zip file.

    The extracted org.red_hat_build_of_optaplanner-red_hat_build_of_optaplanner-8.29.0.Final-redhat-00009/red_hat_build_of_optaplanner-examples/src/main/java/org/optaplanner/examples directory contains example source code.

  4. To build the examples, in the org.red_hat_build_of_optaplanner-red_hat_build_of_optaplanner-8.29.0.Final-redhat-00009 directory enter the following command:

    mvn clean install -Dquickly
    Copy to Clipboard Toggle word wrap
  5. Change to the examples directory:

    red_hat_build_of_optaplanner-examples
    Copy to Clipboard Toggle word wrap
  6. To run the examples, enter the following command:

    mvn exec java
    Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat