Answers: <p><a href="http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk8" rel="nofollow noreferrer">http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk8</a>
  <a href="http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk9" rel="nofollow noreferrer">http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk9</a></p>
  
  <p>Running:</p>
  
  <pre><code>curl -s http://releasesoftwaremoreoften.com/latestversion?name=oraclejdk9 | jq .latestVersion
  </code></pre>
  
  <p>returns:</p>
  
  <pre><code>9.0.4
  </code></pre>
  
  <p>and </p>
  
  <pre><code>curl -s http://releasesoftwaremoreoften.com/latestversion?name=oraclejdk8 | jq .latestVersion
  </code></pre>
  
  <p>returns:</p>
  
  <pre><code>8u162
  </code></pre>
  
Answers: CC BY-SA 3.0
Answers: 2018-02-25T21:53:08.840Z
Answers: 2018-03-03T10:03:21.160Z
Answers: 2018-03-03T10:03:21.160Z
Answers: 030
Body: <p>There is an ansible role that installs jdk8, but is incompatible with jdk9. The role parses a couple of html pages and the commands are incompatible with java9. It was quite hard to make it work for jdk9, and now the PR is broken for jdk8.</p>
  
  <p><a href="https://github.com/ansiblebit/oracle-java/issues/63" rel="noreferrer">https://github.com/ansiblebit/oracle-java/issues/63</a></p>
  
  <p>In order to prevent that a lot of work has to be done over and over again, it would be great if there is an API that shows the latest jdk version. Then this version could be used in the ansible role and then this will be more stable.</p>
  
Comments: CC BY-SA 3.0
Comments: 2018-02-25T18:49:55.467Z
Comments: Do you specifically need the _Oracle_ JDK, or could you use OpenJDK instead?
Comments: BoomShadow
Comments: CC BY-SA 3.0
Comments: 2018-02-25T18:55:22.933Z
Comments: I am specifically looking for the latest Oracle JDK.
Comments: 030
Tags: <automation><oracle-jdk><api>
Title: Does Oracle have an API that shows the latest stable JDK version?
UserDisplayName: 030
ThreadText: # Does Oracle have an API that shows the latest stable JDK version?
  
  (Asked by: username_0 on 2018-02-25)
  
  There is an ansible role that installs jdk8, but is incompatible with jdk9. The role parses a couple of html pages and the commands are incompatible with java9. It was quite hard to make it work for jdk9, and now the PR is broken for jdk8.
  
  <https://github.com/ansiblebit/oracle-java/issues/63>
  
  In order to prevent that a lot of work has to be done over and over again, it would be great if there is an API that shows the latest jdk version. Then this version could be used in the ansible role and then this will be more stable.
  
  **Tags:** automation, oracle-jdk, api
  
  > **Comments:**
  > **username_1**: Do you specifically need the _Oracle_ JDK, or could you use OpenJDK instead?  
  > **username_0**: I am specifically looking for the latest Oracle JDK.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-02-25. Score: 1 | Accepted answer
  
  <http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk8>
  <http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk9>
  
  Running:
  
  ```
  curl -s http://releasesoftwaremoreoften.com/latestversion?name=oraclejdk9 | jq .latestVersion
  
  ```
  
  returns:
  
  ```
  9.0.4
  
  ```
  
  and
  
  ```
  curl -s http://releasesoftwaremoreoften.com/latestversion?name=oraclejdk8 | jq .latestVersion
  
  ```
  
  returns:
  
  ```
  8u162
  
  ```
  
  
  ---
  
  