-
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
Unable to build Java targets in Google Cloud Shell #5766
Comments
I am having the same or similar problem. Description of the problem/feature request: Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible. What operating system are you running Bazel on?
What's the output of
Have you found anything relevant by searching the web? Any other information, logs, or outputs that you want to share?
|
@cushon any ideas? |
This sounds related to #5744 |
Even though java and javac are Java 8, JAVA_HOME appears to be set to Java 10. I had to update /etc/environment to point to the correct JAVA_HOME which corrected my problem. I was able to figure this out by reading through #5744 |
The bazel/src/main/cpp/blaze_util_linux.cc Line 172 in ac69da0
The issue with Bazel not supporting JDK > 8 |
We have created a 0.16.1 release candidate and are planning on releasing this as 0.16.1 on Monday. Please give it a spin https://releases.bazel.build/0.16.1/rc2/index.html |
@buchgr thanks for the tip, seems upgrading actually resolved the issue 🙂 |
Description of the problem / feature request:
Cannot build Java targets on Google Cloud Shell
Feature requests: what underlying problem are you trying to solve with this feature?
Trying to make a tutorial that utilizes
bazel
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
What's the output of
bazel info release
?release 0.16.0
Have you found anything relevant by searching the web?
Found a similar issue that was closed with no solution by the author: #2533
Any other information, logs, or outputs that you want to share?
The error I get here is flaky. For example, after running
bazel clean --expunge; bazel build //:main
I was able to get (noticecharsets.jar
instead ofresources.jar
:The text was updated successfully, but these errors were encountered: