Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added hint in status to upgrade to java 1.8

Michael Peter Christenbfd4e5f9e5d4
diff --git a/htroot/Status.html b/htroot/Status.html
index fcc580166..81917d8df 100644
--- a/htroot/Status.html
+++ b/htroot/Status.html
@@ -170,6 +170,15 @@
</dd>
#(/hintCrawlMonitor)#
+ #(hintJREVersion)#::
+ <dt class="hintIcon"><img src="env/grafics/idea.png" width="32" height="32" alt="idea"/></dt>
+ <dd class="hint">
+ Your Java version is old. YaCy currently needs Java 1.7 but we want to migrate to Java 1.8 in the future.
+ Migration to 1.8 won't happen until end of 2016, but we want to join code with YaCy's sister project <a href="http://loklak.org">loklak.org</a>
+ and with a possible re-construction of YaCy in the <a href="http://kaskelix.de">kaskelix</a> architecture which will be using Java 1.8
+ </dd>
+ #(/hintJREVersion)#
+
#(hintSupport)#::
<dt class="hintIcon"><img src="env/grafics/idea.png" width="32" height="32" alt="idea"/></dt>
<dd class="hint">If you need professional support, please write to <tt>[email protected]</tt><br>For community support, please visit our <a href="http://forum.yacy.de" target="_blank">forum</a>.
diff --git a/htroot/Status.java b/htroot/Status.java
index 9119a9ad8..d31f2867c 100644
--- a/htroot/Status.java
+++ b/htroot/Status.java
@@ -173,6 +173,10 @@ public class Status
prop.put("hintCrawlMonitor", "1");
}
+ if (!System.getProperty("java.version").startsWith("1.8")) {
+ prop.put("hintJREVersion", "1");
+ }
+
if (adminaccess && "intranet|webportal|allip".indexOf(env.getConfig(SwitchboardConstants.NETWORK_NAME, "unspecified")) >= 0) {
prop.put("hintSupport", "1");
}