Skip to content
New issue

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

Cannot recognize installed JDK on Windows 10 using Zulu OpenJDK 11 #721

Open
federico-lox opened this issue Nov 3, 2018 · 3 comments
Open

Comments

@federico-lox
Copy link

federico-lox commented Nov 3, 2018

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

@didibus
Copy link

didibus commented Nov 11, 2018

Getting the same error with adoptopenjdk 8 - openJ9. Even though java is on the path.

@burn2delete
Copy link
Contributor

Known issue, nothing we can do about it at the moment. See #602

@ghost
Copy link

ghost commented Jan 28, 2019

Hi,
i got boot 2.8.2 working on Windows 10 Pro 64bit with adoptopenjdk, both installed with scoop.

PS C:\Users\thomas> boot --version
#http://boot-clj.com
#Mon Jan 28 19:29:21 CET 2019
BOOT_VERSION=2.8.2
BOOT_CLOJURE_VERSION=1.8.0
BOOT_CLOJURE_NAME=org.clojure/clojure

PS C:\Users\thomas> java --version
openjdk 11.0.1 2018-10-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.1+13)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.11.0, JRE 11 Windows 10 amd64-64-Bit Compressed References 20181115_19 (JIT enabled, AOT enabled)
OpenJ9   - 090ff9dcd
OMR      - ea548a66
JCL      - d4455071ce based on jdk-11.0.1+13)

i used a workaround from here and changed it like so:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft]

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment]
"CurrentVersion"="11.0"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment\11.0]
"JavaHome"="C:\\Users\\thomas\\scoop\\apps\\adoptopenjdk-openj9\\current"
"MicroVersion"="0"```

Put this stuff into a file like: thisreallysux.reg, then open regedit and import the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants