We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 'bazel run' a java_binary with a specified JAVA_HOME
bazel run --host_javabase=:jdk8 --javabase=:jdk8 :hello_world
results in LAUNCHER ERROR: Rlocation failed on C:/openjdk/bin/java.exe, path doesn't exist in MANIFEST file
Relevant files (BUILD and HelloWorld.java)
package(default_visibility = ["//visibility:public"]) java_library( name = "hello_lib", srcs = glob(["*.java"]), )
java_binary( name = "hello_world", main_class = "hello.HelloWorld", runtime_deps = [ ":hello_lib", ], )
java_runtime_suite( name = "jdk8", default = ":jdk8-default", ) java_runtime( name = "jdk8-default", srcs = [], java_home = "C:/openjdk", )
package hello; public final class HelloWorld { public static void main(String[] args) throws Exception { System.out.println("Hello, world!"); } }
Windows Server Core 1803
bazel info release
release 0.13.0
After speaking with @jasharpe,
I think there is a bug with the launcher
bazel/src/tools/launcher/launcher.cc
Line 145 in 40f5a77
If the path is absolute, we should return it regardless of whether the manifest file is empty or not
The text was updated successfully, but these errors were encountered:
@laszlocsomor @meteorcloudy
Sorry, something went wrong.
Oh, i should add this setup needed an empty WORKSPACE file as well.
@bansalvinayak Thanks for reporting! You're right about the bug, I'll fix it soon!
bc52a18
windows,launcher: Rlocation function now handles absolute paths corre…
7314cec
…ctly Fix bazelbuild#5516 RELNOTES: None PiperOrigin-RevId: 203448188
meteorcloudy
No branches or pull requests
Description of the problem / feature request:
Unable to 'bazel run' a java_binary with a specified JAVA_HOME
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazel run --host_javabase=:jdk8 --javabase=:jdk8 :hello_world
results in
LAUNCHER ERROR: Rlocation failed on C:/openjdk/bin/java.exe, path doesn't exist in MANIFEST file
Relevant files (BUILD and HelloWorld.java)
package(default_visibility = ["//visibility:public"])
java_library(
name = "hello_lib",
srcs = glob(["*.java"]),
)
java_binary(
name = "hello_world",
main_class = "hello.HelloWorld",
runtime_deps = [
":hello_lib",
],
)
java_runtime_suite(
name = "jdk8",
default = ":jdk8-default",
)
java_runtime(
name = "jdk8-default",
srcs = [],
java_home = "C:/openjdk",
)
package hello;
public final class HelloWorld {
public static void main(String[] args) throws Exception {
System.out.println("Hello, world!");
}
}
What operating system are you running Bazel on?
Windows Server Core 1803
What's the output of
bazel info release
?release 0.13.0
Have you found anything relevant by searching the web?
After speaking with @jasharpe,
I think there is a bug with the launcher
bazel/src/tools/launcher/launcher.cc
Line 145 in 40f5a77
If the path is absolute, we should return it regardless of whether the manifest file is empty or not
The text was updated successfully, but these errors were encountered: