From 944d7974c7e9303ce077a98e158d4d60e6f60c6e Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 4 Apr 2018 16:56:25 +1000 Subject: Add warning message for too recent java versions --- src/main/java/org/spigotmc/builder/Bootstrap.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/spigotmc/builder/Bootstrap.java b/src/main/java/org/spigotmc/builder/Bootstrap.java index 5899eb2..aed1838 100644 --- a/src/main/java/org/spigotmc/builder/Bootstrap.java +++ b/src/main/java/org/spigotmc/builder/Bootstrap.java @@ -20,6 +20,12 @@ public class Bootstrap System.err.println( "*** WARNING *** You may use java -version to double check your Java version." ); } + if ( javaVersion < 54.0 ) + { + System.err.println( "*** WARNING *** Unsupported Java detected (" + javaVersion + "). BuildTools has only been tested up to Java 10. Use of development Java version is not supported." ); + System.err.println( "*** WARNING *** You may use java -version to double check your Java version." ); + } + Builder.main( args ); } } -- cgit v1.2.3