You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did add the JDK 8 to our Docker container as a workaround. If this was intentional, then the release notes should be updated to reflect the breaking change (as well as the fact that the embedded JDK was updated to 9).
Even though our longer-term intention is to fully hide the embedded JDK, we should not break people without prior announcement.
We will be issuing the patch release of 0.16 that fixes this: track status in #5792
Activity
schroederc commentedon Aug 2, 2018
This seems similar to the issue with the 0.15.1 release: #5591 (comment)
laszlocsomor commentedon Aug 3, 2018
I see the same on Windows 10 with Bazel 0.16.0 vs. Bazel 0.15.2:
Solution was to define JAVA_HOME:
laszlocsomor commentedon Aug 3, 2018
/cc @buchgr -- do you know what's going on?
schroederc commentedon Aug 3, 2018
While we're on the subject, how does one actually go about building a Bazel binary with the fully embedded JDK? If I try
bazel build --stamp //src:bazelon https://github.com/bazelbuild/bazel/tree/0.15.2 or https://github.com/bazelbuild/bazel/tree/0.16.0, then I get either the issue from #5591 (comment) or this issue, respectively.buchgr commentedon Aug 6, 2018
@schroederc which JDK version to you have installed on your system? Are you specifying a
--javabasevia a flag (in.bazelrcmaybe?).schroederc commentedon Aug 6, 2018
The point is that the system doesn't have any JDK installed. 0.15 did not need a local JDK installed but 0.16.0 now does.
As a repro, this Docker container builds a
java_librarysuccessfully using 0.15.2 with no local JDK:But 0.16.0 fails to build the same target in the same environment:
0.16.0 complains about a missing input file:
buchgr commentedon Aug 6, 2018
@cushon any ideas?
cushon commentedon Aug 6, 2018
We're defaulting to the embedded JDK as a target
--javabase, and we don't support JDK > 8 as a target--javabase.Can you install a JDK 8 and use that as the target?
In the medium term
--javabaseschroederc commentedon Aug 6, 2018
I did add the JDK 8 to our Docker container as a workaround. If this was intentional, then the release notes should be updated to reflect the breaking change (as well as the fact that the embedded JDK was updated to 9).
cushon commentedon Aug 6, 2018
They mention the first part:
https://blog.bazel.build/2018/07/31/bazel-0.16.html
schroederc commentedon Aug 6, 2018
It's missing in https://github.com/bazelbuild/bazel/releases/tag/0.16.0.
'DumpPlatformClasspath' now dumps the current JDK's default platform …
dslomov commentedon Aug 8, 2018
Even though our longer-term intention is to fully hide the embedded JDK, we should not break people without prior announcement.
We will be issuing the patch release of 0.16 that fixes this: track status in #5792
'DumpPlatformClasspath' now dumps the current JDK's default platform …
'DumpPlatformClasspath' now dumps the current JDK's default platform …
cushon commentedon Aug 9, 2018
This is fixed at head, and the fixes will be included in the upcoming 0.16.1 and 0.17 releases.
'DumpPlatformClasspath' now dumps the current JDK's default platform …
'DumpPlatformClasspath' now dumps the current JDK's default platform …
Release 0.16.1 (2018-08-13)
'DumpPlatformClasspath' now dumps the current JDK's default platform …
'DumpPlatformClasspath' now dumps the current JDK's default platform …