tag:help.appveyor.com,2012-11-13:/discussions/questions/39937-how-to-set-windows-server-2019-java_homeAppVeyor: Discussion 2019-07-30T17:52:10Ztag:help.appveyor.com,2012-11-13:Comment/474806462019-07-29T19:43:46Z2019-07-29T19:43:47ZHow to set Windows Server 2019 JAVA_HOME<div><p>What is the proper way to set JAVA_HOME for windows server 2019? I've tried a few samples that I found, but I keep getting "<br>
ERROR: JAVA_HOME is set to an invalid directory".</p>
<pre>
<code>version: 1.0.{build}
image: Windows Server 2019
build_script:
- docker-switch-linux
- choco install unzip gradle
- SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0\bin
SET PATH=%JAVA_HOME%\bin;%PATH%</code>
</pre></div>Derek Smarttag:help.appveyor.com,2012-11-13:Comment/474806462019-07-30T17:50:26Z2019-07-30T17:50:26ZHow to set Windows Server 2019 JAVA_HOME<div><p>Hi Derek,</p>
<p>Sorry for the trouble. Java is still not installed on this image. Please watch <a href="https://github.com/appveyor/ci/issues/3039">https://github.com/appveyor/ci/issues/3039</a>. We plan to deploy it soon.</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/474806462019-07-30T17:52:09Z2019-07-30T17:52:10ZHow to set Windows Server 2019 JAVA_HOME<div><p>Ok. Thanks! I'll keep an eye on that thread.</p></div>Derek Smart