第4章 Red Hat build of OptaPlanner サンプルのダウンロードおよびビルド

Red Hat Build of OptaPlanner の例は、Red Hat カスタマーポータルで入手できる Red Hat build of OptaPlanner ソースパッケージの一部としてダウンロードできます。

注記

Red Hat build of OptaPlanner は GUI に依存しません。デスクトップと同じように、サーバーまたはモバイル JVM 上でも実行できます。

手順

  1. Red Hat カスタマーポータルの Software Downloads ページに移動し (ログインが必要)、ドロップダウンオプションから製品およびバージョンを選択します。

    • 製品: Red Hat build of OptaPlanner
    • バージョン: 8.38
  2. Red Hat build of OptaPlanner 8.38 Source Distribution をダウンロードします。
  3. rhbop-8.38.0-optaplanner-sources.zip ファイルを展開します。

    展開した org.optaplanner.optaplanner-8.38.0.Final-redhat-00004/optaplanner-examples/src/main/java/org/optaplanner/examples ディレクトリーには、サンプルソースコードが含まれています。

  4. サンプルをビルドするには、org.optaplanner.optaplanner-8.38.0.Final-redhat-00004 ディレクトリーで次のコマンドを入力します。

    mvn clean install -Dquickly
  5. サンプルディレクトリーに移動します。

    optaplanner-examples
  6. 例を実行するには、次のコマンドを入力します。

    mvn exec java