From b82300358abd83ef6687e70559f33a26491cf9d5 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Wed, 14 Sep 2016 16:32:57 +0200 Subject: [PATCH] removed version number check because it does not work any more if version numbers are expressed in a different way as we expect. That could cause that YaCy does not run on systems which are appropriate but we simply do not understand the version string. --- source/net/yacy/yacy.java | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/source/net/yacy/yacy.java b/source/net/yacy/yacy.java index 62619a9e9..0176185b4 100644 --- a/source/net/yacy/yacy.java +++ b/source/net/yacy/yacy.java @@ -145,30 +145,6 @@ public final class yacy { System.out.println(copyright); System.out.println(hline); - // check java version - try { - "a".isEmpty(); // needs at least Java 1.6 - - // check java version string (required min 1.7) - final String javaVersion = System.getProperty("java.version"); - if (javaVersion != null) { // unknown property !? - int pos = javaVersion.indexOf('.'); - if (pos < 0) pos = javaVersion.indexOf('-'); // i.e. "9-ea" - int count = 1; - for (; pos >= 0 && pos < javaVersion.length() && count < 2; pos++) { - if (javaVersion.charAt(pos + 1) == '.' || javaVersion.charAt(pos + 1) == '-') count++; - } - Double dVersion = Double.parseDouble(javaVersion.substring(0, pos)); - if (dVersion < 1.7) { // required min java 1.7 - System.err.println("STARTUP: Java Version too low. You need at least Java 1.7 to run YaCy"); - System.exit(-1); - } - } - } catch (final NoSuchMethodError e) { - System.err.println("STARTUP: Java Version too low. You need at least Java 1.7 to run YaCy"); - System.exit(-1); - } - // ensure that there is a DATA directory, if not, create one and if that fails warn and die mkdirsIfNeseccary(dataHome); mkdirsIfNeseccary(appHome);