mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix startup Java version check
This commit is contained in:
@@ -89,9 +89,9 @@ public class StartupUtil {
|
||||
|
||||
if (!"true".equals(System.getProperty("idea.no.jdk.check"))) {
|
||||
final String version = System.getProperty("java.version");
|
||||
if (!version.startsWith("1.6") && !version.startsWith("1.7")) {
|
||||
showError("Java Version Mismatch", "The JDK version is " + version + "\n." +
|
||||
ApplicationNamesInfo.getInstance().getProductName() + " requires JDK 1.6 or 1.7.");
|
||||
if (!SystemInfo.isJavaVersionAtLeast("1.6")) {
|
||||
showError("Java Version Mismatch", "The JDK version is " + version + ".\n" +
|
||||
ApplicationNamesInfo.getInstance().getProductName() + " requires JDK 1.6 or higher.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user