Typing `bazel help' produces Couldn't find java at '/usr/libexec/bin/java'. This can be fixed by setting JAVA_HOME, e.g. like this, export JAVA_HOME=`java-config --jdk-home` I suggest that an "emerge message" is added for this, to make it easier getting started, especially since there is no manpage and `bazel --help` does not work either.
Created attachment 498402 [details] Output of `emerge --info'
Normally JAVA_HOME is set by /etc/profile.d/java-config-2.sh which is installed by sys-apps/baselayout-java. Do you have that file?
Since bazel already has a java-config dependency from the java-pkg-2 eclass it inherits, you probably just need to do this: source /etc/profile I suppose would would suggest to do that with an elog message on the first install, possibly using the readme.gentoo-r1 eclass.
I can run bazel as an user but not inside ebuilds echo $JAVA_HOME inside an ebuild return nothing You say that the bazel eclass is inheriting java-pkg-2 but that isn't true