Only allow Java 11 runtime version

This commit is contained in:
SiboVG 2022-03-01 18:58:53 +01:00
parent 6a6fe8d862
commit ef809147e1
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public final class Application {
private static Injector injector;
// Supported Java Runtime Environment versions in which OR is allowed to run (e.g. '11' for Java 11)
public static int[] SUPPORTED_JRE_VERSIONS = {11, 12, 13};
public static int[] SUPPORTED_JRE_VERSIONS = {11};
/**
* Return whether to use additional safety code checks.

View File

@ -107,7 +107,7 @@ public class SwingStartup {
if (IntStream.of(Application.SUPPORTED_JRE_VERSIONS).noneMatch(c -> c == version)) {
String title = "Unsupported Java version";
String message1 = "Unsupported Java version: %s";
String message2 = "Supported versions: %s";
String message2 = "Supported version(s): %s";
String message3 = "Please change the Java Runtime Environment version or install OpenRocket using a packaged installer.";
StringBuilder message = new StringBuilder();