64 bit Windows 7 or newer, or equivalent Windows Server versions
These are common DLLs that Bazel needs. You may already have them installed.
Download Bazel for Windows from our
GitHub releases page.
Tip: For convenience, rename the downloaded binary to
bazel.exe and move it to a directory
that's on your
%PATH% or add its directory to your
%PATH%. This way you can run Bazel by
bazel in any directory, without typing out the full path.
Note: Bazel includes an embedded JDK so you don't need to install one separately. If you want
to download Bazel without an embedded JDK, look for
on the release page. To use it, you must install JDK 8 separately (older or newer versions are not
supported), and set the
JAVA_HOME environment variable, e.g.:
set JAVA_HOME=c:\Program Files\Java\jdk1.8.0_171
Pay attention not to use quotes (") around the path (like you would on Unixes).
You can also get Bazel by:
You can install the Bazel package using the Chocolatey package manager:
choco install bazel
This command will install the latest available version of Bazel and its dependencies, such as the MSYS2 shell. This will not install Visual C++ though.
See Chocolatey installation and package maintenance guide for more information about the Chocolatey package.