Skip to content

Commit

Permalink
Add note about limitation of JAVA_HOME paths
Browse files Browse the repository at this point in the history
Because bazel uses junction points to connect @local_jdk to JAVA_HOME,
and Windows does not support junction points referencing remote
filesystems, it is currently necessary to install Java on a "local"
filesystem.

Using remote_jdk is a partial workaround, but that's more complex and
doesn't belong in this document.

Closes #7711.

PiperOrigin-RevId: 238438245
  • Loading branch information
asuffield authored and copybara-github committed Mar 14, 2019
1 parent 75bb7a9 commit a554d7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/docs/install-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ title: Installing Bazel on Windows
Example: `c:\msys64\usr\bin\bash.exe`
1. **Add `JAVA_HOME`** (if you will build **Java** code). Its value must be
the directory where you installed the Java JDK 8, for example
`C:\Program Files\Java\jdk1.8.0_152`
`C:\Program Files\Java\jdk1.8.0_152`. In order to use this with the
default local_jdk javabase, it must be installed on a volume which
Windows considers to be **local**, network mounted filesystems will not
work.

**None of these paths should contain spaces or non-ASCII characters.**

Expand Down

0 comments on commit a554d7c

Please sign in to comment.