boot-clj / boot-clj/boot

Cannot recognize installed JDK on Windows 10 using Zulu OpenJDK 11

Open
#721 3 comments 4 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
1.7k
Forks
178
PR merge metrics
No merged PRs in 30d

Description

### Problem Description

Running `boot.exe` results in:

> This application requires a Java Runtime Environment 1.7.0
> The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.

Leiningen (via `lein.bat`) works as expected on the exact same setup.
I was able to get boot working in bash (from the Git BASH distribution) using `boot.sh`, but boot.exe results in the message above using both cmd.exe and PowerShell.

### Steps to reproduce

1. Download boot.exe - https://github.com/boot-clj/boot-bin/releases/download/latest/boot.exe
2. Put it in a path included in the `PATH` env variable
3. Launch cmd.exe or PowerShell
4. Run `boot.exe`
5. The message reported above appears and a browser window opens Oracle's JDK dowload page.

### Platform details

Platform (macOS, Linux, Windows): Windows
Platform version: 10 Home
JRE/JDK version (`java -version`):
```
openjdk version "11.0.1" 2018-10-16 LTS
OpenJDK Runtime Environment Zulu11.2+3 (build 11.0.1+13-LTS)
OpenJDK 64-Bit Server VM Zulu11.2+3 (build 11.0.1+13-LTS, mixed mode)
```

### Boot details

Boot version (2.7.1):
```
BOOT_VERSION=2.8.2
BOOT_CLOJURE_VERSION=1.8.0
BOOT_CLOJURE_NAME=org.clojure/clojure
```
`build.boot` present? (yes/no): no, first invocation
`~/.boot/profile` present? (yes/no): no, first invocation
Task name? (if applicable): none, first invocation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.