Add startup check for Java 7
Change-Id: I0ebcc126b46d0c948c1d249188bf95f0a8564c9e
This commit is contained in:
parent
1f9affd0f3
commit
00d636b0f3
@ -31,11 +31,11 @@ public final class Main {
|
||||
|
||||
private static boolean onSupportedJavaVersion() {
|
||||
final String version = System.getProperty("java.specification.version");
|
||||
if (1.6 <= parse(version)) {
|
||||
if (1.7 <= parse(version)) {
|
||||
return true;
|
||||
|
||||
} else {
|
||||
System.err.println("fatal: Gerrit Code Review requires Java 6 or later");
|
||||
System.err.println("fatal: Gerrit Code Review requires Java 7 or later");
|
||||
System.err.println(" (trying to run on Java " + version + ")");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user