Skip to content

bazel 4.0 expects JAVA_HOME variable to be setΒ #22

@DumbledoreMD

Description

@DumbledoreMD

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions