remove Java 8 requirement

This commit is contained in:
Sen 2025-03-16 17:42:19 +01:00
parent 3af1b1f5b6
commit cabbe9cda5

View file

@ -2541,18 +2541,6 @@ public class Game implements IThreadListener {
public static void main(String[] args) {
if(!System.getProperty("java.version").startsWith("1.8")) {
String info = "Inkompatible Java-Version";
String msg = "Java Version 8 ist erforderlich, um dieses Programm auszuführen.\n" +
"Neuere Versionen von Java (9 und höher) sind nicht kompatibel.";
System.err.println("#################################################################");
System.err.println("*** " + info + " ***");
System.err.println(msg);
System.err.println("#################################################################");
if(!GraphicsEnvironment.isHeadless())
JOptionPane.showMessageDialog(null, msg, info, JOptionPane.ERROR_MESSAGE);
return;
}
WCF.init();
Locale.setDefault(Locale.ROOT);
Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {