[null,null,["最后更新时间 (UTC):2024-08-22。"],[[["\u003cp\u003eThis guide provides instructions for installing OR-Tools for Java on Windows 10 64-bit systems using Visual Studio 2022.\u003c/p\u003e\n"],["\u003cp\u003ePrerequisites include Microsoft Visual C++ Redistributable for Visual Studio 2022 (x64), a 64-bit Java JDK 8.0 or later, and a 64-bit Maven installation.\u003c/p\u003e\n"],["\u003cp\u003eInstallation involves downloading and extracting the OR-Tools binary distribution for Visual Studio 2022 and validating the installation by running the provided test command.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful installation enables users to proceed with utilizing OR-Tools for their Java projects, as detailed in the linked introductory resources.\u003c/p\u003e\n"]]],["OR-Tools for Java installation on Windows requires specific prerequisites: Microsoft Visual C++ Redistributable for Visual Studio 2022 (x64), a 64-bit Java JDK (8.0 or later), and 64-bit Maven. The installation involves downloading and extracting the OR-Tools binary distribution compatible with Visual Studio 2022. After extraction, the installation can be validated by running `tools\\make test` in an x64 Native Tools Command Prompt within the extracted directory.\n"],null,["# Installing OR-Tools for Java from Binary on Windows\n\nIntroduction\n------------\n\nThis guide explains how to install OR-Tools for Java on Windows.\n\nAlthough these instructions might also work on other Windows variants, we\nhave only tested them on machines meeting the following requirements:\n\n\nWindows 10 64-bit (x86_64) with:\n\n- Microsoft Visual Studio Enterprise 2022\n- Microsoft Visual Studio Community 2022 Preview 2 or above\n\n\u003cbr /\u003e\n\n| **Note:** OR-Tools only provides archives for the **x86_64** (also known as **amd64**) architecture.\n\nPrerequisites\n-------------\n\nThe following sections describe the prerequisites for installing OR-Tools.\n\n### Microsoft Visual C++ Redistributable\n\nYou must have the\n[Microsoft Visual C++ Redistributable for Visual Studio 2022](https://visualstudio.microsoft.com/downloads/?q=Visual+C%2B%2B+Redistributable+for+Visual+Studio) (select the x64 version) installed\non your computer, since OR-Tools library for Java is a wrapper for the\nC++ native library.\n\n### Java JDK\n\nYou must also have a Java JDK 64 bit, version 8.0 or later installed.\n\nYou can find more details\n[here](https://java.com/en/download/help/download_options.xml).\n\n### Maven\n\nYou must also have a Maven 64 bit installed.\n\nYou can find more details [here](https://maven.apache.org/download.cgi).\n\nInstalling OR-Tools\n-------------------\n\nTake the following steps to install the OR-Tools library for Java:\n\nDownload and extract the binary distribution for your system:\n\n\n- [Visual Studio 2022](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x64_VisualStudio2022_java_v9.12.4544.zip)\n\n\u003cbr /\u003e\n\nValidate your installation\n--------------------------\n\nTo test your Java installations, open a x64 Native Tools Command Prompt and navigate to\nthe directory where you unpacked the binary distribution. Then enter the\nfollowing command:\n\n\n tools\\make test\n\n\u003cbr /\u003e\n\nThis runs a selection of examples for OR-Tools. If all the examples run\nsuccessfully, you are ready to\n[get started with OR-Tools](../../introduction/java)."]]