remove Java 8 requirement
This commit is contained in:
parent
3af1b1f5b6
commit
cabbe9cda5
1 changed files with 0 additions and 12 deletions
|
@ -2541,18 +2541,6 @@ public class Game implements IThreadListener {
|
||||||
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
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();
|
WCF.init();
|
||||||
Locale.setDefault(Locale.ROOT);
|
Locale.setDefault(Locale.ROOT);
|
||||||
Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {
|
Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue