tag:help.appveyor.com,2012-11-13:/discussions/suggestions/365-install-jdkAppVeyor: Discussion 2018-10-19T08:16:43Ztag:help.appveyor.com,2012-11-13:Comment/343967852014-08-31T04:01:05Z2014-08-31T04:01:05ZInstall JDK<div><p>There is Java 7 installed in default location (<a href=
"http://www.appveyor.com/docs/installed-software">http://www.appveyor.com/docs/installed-software</a>).</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/343967852014-08-31T04:05:38Z2014-08-31T04:05:38ZInstall JDK<div><p>According to these docs, what's installed is a JRE (to run Java
code). What I'm looking for is a JDK (to build Java code).</p></div>Peter Niederwiesertag:help.appveyor.com,2012-11-13:Comment/343967852014-08-31T04:07:51Z2014-08-31T04:07:51ZInstall JDK<div><p>Seems you're right. Will install JDK 7 and 8 tomorrow.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/343967852014-08-31T17:39:24Z2014-08-31T17:39:24ZInstall JDK<div><p>Both JDK 7 and 8 have been installed on build workers:</p>
<p>JDK 1.7 (C:\Program Files\Java\jdk1.7.0\bin in PATH)<br>
JDK 1.8 (C:\Program Files\Java\jdk1.8.0)</p>
<p>JDK 1.7 is default and in PATH</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/343967852014-09-01T03:39:45Z2014-09-01T03:39:54ZInstall JDK<div><p>Thanks! Works fine for me.</p></div>Peter Niederwiesertag:help.appveyor.com,2012-11-13:Comment/343967852016-06-23T16:31:12Z2016-06-23T16:31:13ZInstall JDK<div><p>Is C:\Program Files\Java\jdk1.7.0\bin still installed?<br>
I'm seeing this in the log:<br></p>
<pre>
<code>SET PATH=%JAVA_HOME%\bin;%PATH%
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0
java -version
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b1</code>
</pre></div>Miketag:help.appveyor.com,2012-11-13:Comment/343967852016-06-23T17:34:27Z2016-06-23T17:34:27ZInstall JDK<div><p>Location looks right: <a href="http://www.appveyor.com/docs/installed-software#java">http://www.appveyor.com/docs/installed-software#java</a></p>
<p>Though I would swap the first two lines:</p>
<pre>
<code>SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0
SET PATH=%JAVA_HOME%\bin;%PATH%</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/343967852017-10-18T07:42:40Z2017-10-18T07:42:41ZInstall JDK<div><p>Can you please provide a JDK 9 installation? Thanks in advance.</p>
<p><a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html">http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downlo...</a></p></div>Christian Steintag:help.appveyor.com,2012-11-13:Comment/343967852018-01-17T17:08:08Z2018-01-17T17:08:08ZInstall JDK<div><p>Could I also second the request for a JDK9 installation in the image. With Java 9 having been out as a stable release for nearly six months, and with most maven plugins having been updated to support it, it's now viable for most Java-using projects to begin updating their projects to enable Java 9 support. Having AppVeyor support this would be most valauble.</p>
<p>Many thanks for your consideration,<br>
Roger</p></div>rleightag:help.appveyor.com,2012-11-13:Comment/343967852018-01-17T18:41:39Z2018-01-17T18:41:39ZInstall JDK<div><p>Java 9 is scheduled for the next image update: <a href="https://github.com/appveyor/ci/issues/1186">https://github.com/appveyor/ci/issues/1186</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/343967852018-01-17T18:58:52Z2018-01-17T18:58:52ZInstall JDK<div><p>That's really great, thanks!</p></div>rleigh