Windows, Java: uncaught exception if JAVA_HOME is undefined [duplicate of #6118] #6475
Labels
area-Windows
Windows-specific issues and feature requests
team-OSS
Issues for the Bazel OSS team: installation, release processBazel packaging, website
untriaged
Description of the problem / feature request:
Building a java_binary fails with an uncaught exception when JAVA_HOME is undefined.
Bazel should display an informative error message instead.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Build Bazel at 2fda17d
Unset every environment variable except for:
The fake MSYS is a C++ binary that prints its arguments then exits with 1.
Create a workspace with just a java_binary rule and a hello world Java file:
Try building the target. You'll get an uncaught exception:
Finally, set JAVA_HOME to the right value, and try building again. Now it works:
What operating system are you running Bazel on?
Windows Server 2016 (v1607)
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.see above at repro instructions
The text was updated successfully, but these errors were encountered: