Skip to content

Windows: Only checking for the registry entry might not be a valid way to check if Java is installed. #501

@moritzgloeckl

Description

@moritzgloeckl

Tailor Version: v0.12.0
Platform (Mac/Linux/Windows/CI): Windows
Installation Method: Powershell Script

I have installed java version "11.0.4" 2019-07-16 LTS on my Windows 10 machine and correctly set the JAVA_HOME environment variable.

The HKLM:\SOFTWARE\JavaSoft\Java Runtime Environment does not exist on my machine, thus trying to install resolved in an error. There's a HKLM:\SOFTWARE\JavaSoft\JDK\11 though. Commenting the verify-java() function in the .ps1 script installs tailor successfully.

Maybe checking for which java or something similar is better than checking for the registry entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions