summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/spigotmc/builder/Bootstrap.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/spigotmc/builder/Bootstrap.java')
-rw-r--r--src/main/java/org/spigotmc/builder/Bootstrap.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/org/spigotmc/builder/Bootstrap.java b/src/main/java/org/spigotmc/builder/Bootstrap.java
new file mode 100644
index 0000000..aba3d81
--- /dev/null
+++ b/src/main/java/org/spigotmc/builder/Bootstrap.java
@@ -0,0 +1,25 @@
+package org.spigotmc.builder;
+
+public class Bootstrap
+{
+
+ public static void main(String[] args) throws Exception
+ {
+ float javaVersion = Float.parseFloat( System.getProperty( "java.class.version" ) );
+
+ if ( javaVersion < 51.0 )
+ {
+ System.err.println( "Outdated Java detected (" + javaVersion + "). BuildTools requires at least Java 7. Please update Java and try again." );
+ System.err.println( "You may use java -version to double check your Java version." );
+ return;
+ }
+
+ if ( javaVersion != 52.0 )
+ {
+ System.err.println( "*** WARNING *** You are not using Java 8. Java 8 is the only supported version for Minecraft versions >= 1.12." );
+ System.err.println( "*** WARNING *** Please use java -version to check your version and note that early access versions of Java are not supported either." );
+ }
+
+ Builder.main( args );
+ }
+}