JDK 16 is not installed on Visual Studio 2019 environment
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
environment:
matrix:
- 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
https://ci.appveyor.com/project/Antonytm/sitecore-solrproxy/builds/...
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/ )
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Feodor Fitsner on 22 Oct, 2021 02:09 PM
Add
image: Visual Studio 2019
into yourappveyor.yml
. Currently, your account is building onVisual Studio 2015
image by default.2 Posted by antontishchenko on 27 Oct, 2021 03:23 PM
Ok, will do.
I used the settings page:
https://ci.appveyor.com/project/Antonytm/sitecore-solrproxy/settings/environment
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
work.
Thanks,
Anton