Index: /trunk/src/org/openstreetmap/josm/tools/Utils.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/Utils.java	(revision 13989)
+++ /trunk/src/org/openstreetmap/josm/tools/Utils.java	(revision 13990)
@@ -1743,9 +1743,17 @@
     public static String getJavaLatestVersion() {
         try {
-            return HttpClient.create(
+            String[] versions = HttpClient.create(
                     new URL(Config.getPref().get(
                             "java.baseline.version.url",
                             "http://javadl-esd-secure.oracle.com/update/baseline.version")))
-                    .connect().fetchContent().split("\n")[0];
+                    .connect().fetchContent().split("\n");
+            if (getJavaVersion() <= 8) {
+                for (String version : versions) {
+                    if (version.startsWith("1.8")) {
+                        return version;
+                    }
+                }
+            }
+            return versions[0];
         } catch (IOException e) {
             Logging.error(e);
