-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation claims Bazel requires JDK8 #6557
Comments
It depends what "works with" means ( Those docs are talking about bootstrapping, and JDK 8 is probably still a fine choice for that. The issue in #6550 only affects the binaries without an embedded JDK. |
@katre I just followed the steps in a docker container and it produced a working bazel binary. |
@meisterT Was that comment supposed to be on a different issue? |
Regrettably, bootstrapping does not work with JDK 9, at least on Ubuntu 16.04 and Bazel 0.18 (I just checked). So the instructions are indeed accurate. |
My bad -- actually, it does, except with 16.04 has a bug that makes openjdk-9-jdk not install correctly :( |
In bootstraping doc, I also found that it uses openjdk-8-jdk package as an example, but I think it is better to use |
Contributing to Bazel page also needs to mention which JDK is needed. I had version 11 installed and tests were failing. I assumed that JDK is needed because Bazel prints that it couldn't find any JDK matching 1.8 requirement or something like that and tried it. It also didn't work. I gave up. Then I have accidentally discovered that JDK 9 is what is needed to test/build bazel and it worked. Very confusing experience. It was my very first bazel PR. |
Related issue: #6035 So:
The docu states clearly "JDK 8. You must install version 8 of the JDK. Versions other than 8 are not supported." but #6035 states that "--host_javabase= won't work anymore." Especially building Bazel on Power9 is a PITA due to the Java dependency. |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please post |
Currently the install documents (at https://docs.bazel.build/versions/master/install-compile-source.html#bootstrap-unix-prereq) claim that Bazel works with JDK8, but this is no longer accurate. We need to update the docs to correctly explain the required JDK versions.
The text was updated successfully, but these errors were encountered: