diff --git a/doc/building.html b/doc/building.html index 03e87f6fa89..0522bc4888b 100644 --- a/doc/building.html +++ b/doc/building.html @@ -299,6 +299,7 @@
The minimum accepted version of Visual Studio is 2017. Older versions will not be accepted by configure
and will not work. The maximum accepted version of Visual Studio is 2019.
If you have multiple versions of Visual Studio installed, configure
will by default pick the latest. You can request a specific version to be used by setting --with-toolchain-version
, e.g. --with-toolchain-version=2017
.
If you have Visual Studio installed but configure
fails to detect it, it may be because of spaces in path.
Please consult the AIX section of the Supported Build Platforms OpenJDK Build Wiki page for details about which versions of XLC are supported.
This can be a sign of a Cygwin problem. See the information about solving problems in the Cygwin section. Rebooting the computer might help temporarily.
+On Windows, when configuring, fixpath.sh
may report that some directory names have spaces. Usually, it assumes those directories have short paths. You can run fsutil file setshortname
in cmd
on certain directories, such as Microsoft Visual Studio
or Windows Kits
, to assign arbitrary short paths so configure
can access them.
If none of the suggestions in this document helps you, or if you find what you believe is a bug in the build system, please contact the Build Group by sending a mail to build-dev@openjdk.java.net. Please include the relevant parts of the configure and/or build log.
If you need general help or advice about developing for the JDK, you can also contact the Adoption Group. See the section on Contributing to OpenJDK for more information.
diff --git a/doc/building.md b/doc/building.md index ba3eb7d4c73..926148d463d 100644 --- a/doc/building.md +++ b/doc/building.md @@ -382,6 +382,9 @@ If you have multiple versions of Visual Studio installed, `configure` will by default pick the latest. You can request a specific version to be used by setting `--with-toolchain-version`, e.g. `--with-toolchain-version=2017`. +If you have Visual Studio installed but `configure` fails to detect it, it may +be because of [spaces in path](#spaces-in-path). + ### IBM XL C/C++ Please consult the AIX section of the [Supported Build Platforms]( @@ -1466,6 +1469,15 @@ This can be a sign of a Cygwin problem. See the information about solving problems in the [Cygwin](#cygwin) section. Rebooting the computer might help temporarily. +#### Spaces in Path + +On Windows, when configuring, `fixpath.sh` may report that some directory +names have spaces. Usually, it assumes those directories have +[short paths](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-8dot3name). +You can run `fsutil file setshortname` in `cmd` on certain directories, such as +`Microsoft Visual Studio` or `Windows Kits`, to assign arbitrary short paths so +`configure` can access them. + ### Getting Help If none of the suggestions in this document helps you, or if you find what you