added hint in status to upgrade to java 1.8

This commit is contained in:
Michael Peter Christen 2016-05-25 06:58:51 +02:00
parent d52c5b8c4d
commit bfd4e5f9e5
2 changed files with 13 additions and 0 deletions

View File

@ -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>support@yacy.net</tt><br>For community support, please visit our <a href="http://forum.yacy.de" target="_blank">forum</a>.

View File

@ -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");
}