Skip to content

Commit 45436ee

Browse files
authored
Merge pull request #9142 from tomatotomata/codex/document-java8-default-9111
docs: require Java 8 as the active JDK
2 parents 0ebdc4c + c526747 commit 45436ee

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

COMPILING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,15 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
167167
```
168168
dnf install java-1.8.0-openjdk-devel maven jq
169169
```
170+
JBMC requires a Java 8 toolchain in the build shell, but Java 8 does not
171+
need to be the system-wide default JDK. If another JDK is selected by
172+
default, set `JAVA_HOME` to the Java 8 installation and prepend its `bin`
173+
directory to `PATH` for the build. Verify both the runtime and compiler:
174+
```
175+
java -version
176+
javac -version
177+
```
178+
Both commands should report version 1.8.
170179
171180
2. As a user, get the CBMC source via
172181
```
@@ -250,6 +259,10 @@ Maven 3 manually.
250259
```
251260
pkg install openjdk8 wget maven
252261
```
262+
Java 8 needs only be selected for the build shell, not as the system-wide
263+
default. Set `JAVA_HOME` to the OpenJDK 8 directory and prepend its `bin`
264+
directory to `PATH` if another JDK is selected, then verify with
265+
`java -version` and `javac -version`.
253266
2. As a user, get the CBMC source via
254267
```
255268
git clone https://github.com/diffblue/cbmc cbmc-git

0 commit comments

Comments
 (0)