JDK 16 is not installed on Visual Studio 2019 environment

antontishchenko's Avatar


22 Oct, 2021 10:10 AM

I use https://www.appveyor.com/docs/windows-images-software/ page as a reference.
I see that Visual Studio 2019 should have JDK 15 (x64), JDK 16 (x64). I set the environment variable JAVA_HOME using

    - JAVA_HOME: C:\Program Files\Java\jdk16

But I get the error message:

ERROR: JAVA_HOME exists but does not point to a valid Java home
       folder. No "\bin\java.exe" file can be found there.
e.g.: https://ci.appveyor.com/project/Antonytm/sitecore-solrproxy/builds/...

I try to get more information about existence of C:\Program Files\Java\jdk15 at all, I added the next commands to build configuration:

  - cd "C:\Program Files\Java\jdk15"
  - dir
  - cd bin
  - dir

I get next error message:

cd "C:\Program Files\Java\jdk15"
The system cannot find the path specified.
Command exited with code 1

I tried the same on 13 and it works: C:\Program Files\Java\jdk13

Question: Does JDK 16 & 15 is present in the Visual Studio 2019 environment ?
And if yes, where is it located?
(because it looks like current documentation page has wrong information: https://www.appveyor.com/docs/windows-images-software/ )

  1. Support Staff 1 Posted by Feodor Fitsner on 22 Oct, 2021 02:09 PM

    Feodor Fitsner's Avatar

    Add image: Visual Studio 2019 into your appveyor.yml. Currently, your account is building on Visual Studio 2015 image by default.

  2. 2 Posted by antontishchenko on 27 Oct, 2021 03:23 PM

    antontishchenko's Avatar

    Ok, will do.

    I used the settings page:
    Settings > Environment > Build worker image

    where I already have "Visual Studio 2019".

    2 places for this configuration confuse, especially if one of them doesn't


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac