Skip to content
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

bazel 4.0 expects JAVA_HOME variable to be set #22

Open
DumbledoreMD opened this issue Mar 20, 2021 · 3 comments
Open

bazel 4.0 expects JAVA_HOME variable to be set #22

DumbledoreMD opened this issue Mar 20, 2021 · 3 comments

Comments

@DumbledoreMD
Copy link

Hi,

The installation was erroring out in my case with the following message:

FATAL: Could not find system javabase. Ensure JAVA_HOME is set, or javac is on your PATH.

which I fixed by adding this export at the beginning of the build script

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk

This seemed to solve the problem, and everything installed correctly.

It may have been an issue with my system from somewhere else, but according to the wiki the JAVA_HOME variable shouldn't be set globally, so I don't know.

@acxz
Copy link
Member

acxz commented Mar 8, 2023

I have been getting similar errors with java as well. My current solution is to source the following lines:

export JAVA_HOME=/usr/lib/jvm/default
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/default/lib/server

I tried to understand the wiki page for Java but still had to use the above workaround.

@acxz
Copy link
Member

acxz commented Sep 9, 2023

Patched with #55
thanks @mpeschel10 !

@acxz acxz added the patched label Sep 9, 2023
@acxz
Copy link
Member

acxz commented Jul 21, 2024

with an update to bazel, i have reverted the associated PR. As such removing the patch label. Maybe this patch is still needed, but until we can reproduce the issue on the latest version of this PKGBUILD, keeping the patch out.

@acxz acxz removed the patched label Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants