Skip to content

Commit 4b604e3

Browse files
committed
java_home doc notes
1 parent 4815132 commit 4b604e3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/bef/install.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ Other platforms (yo, OS/2 user!) may also work, but you may need to contribute p
2222

2323
At this time, we don't have specific guidance on what JDK version you should be using.
2424
Any JDK11 or above should work.
25-
We support modern versions of Java, so whatever you pick should just work.
2625
If you find one that does NOT work, let us know.
26+
27+
Bazel generally has not been strong with hermetic Java configuration and relies on *JAVA_HOME*
28+
in unexpected ways.
29+
If your build relies on *JAVA_HOME* being set, you will likely have problems with BEF.
30+
See [this issue](https://github.com/salesforce/bazel-eclipse/issues/417) for additional configuration steps
31+
you will need to perform as workarounds.
32+
2733
More details of our JDK support strategy can be [found here](../dev/jdk.md).
2834

2935
### Installing Eclipse

docs/bef/issues.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ In the meantime, there are two workarounds:
4040
- Only import one of the Bazel packages (```//a/b/c``` or ```//x/y/z```) into Eclipse to prevent the cycle.
4141
- Delete the error from the _Problems View_ in Eclipse and the Error will not return often. Right click on the error line, and choose _Delete_.
4242

43+
### JDK Configuration Issues: "IllegalArgumentException: external/local_jdk" or "Unable to locate a Java Runtime."
44+
45+
See [this BEF issue](https://github.com/salesforce/bazel-eclipse/issues/417) for status and
46+
workarounds for these types of problems.
4347

4448
### "CreateProcess Error Code 5 Access Denied", "Error fetching repository" (Windows)
4549

0 commit comments

Comments
 (0)