diff options
-rw-r--r-- | src/main/java/org/spigotmc/builder/Builder.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index 4973335..aa90137 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -55,7 +55,6 @@ public class Builder public static final String LOG_FILE = "BuildTools.log.txt"; public static final boolean IS_WINDOWS = System.getProperty( "os.name" ).startsWith( "Windows" ); - public static final boolean IS_MAC = System.getProperty( "os.name" ).startsWith( "Mac" ); public static final File CWD = new File( "." ); public static final String MC_VERSION = "1.8"; private static boolean dontUpdate; @@ -81,12 +80,11 @@ public class Builder logOutput(); - if ( IS_MAC && !Boolean.getBoolean( "mac.supported" ) ) + if ( Float.parseFloat( System.getProperty( "java.class.version" ) ) < 51.0 ) { - System.out.println( "Sorry, but Macintosh is not currently a supported platform for compilation at this time." ); - System.out.println( "If you feel like testing Macintosh support please run this script with the -Dmac.supported=true option." ); - System.out.println( "Else please run this script on a Windows or Linux PC and then copy the jars to this computer." ); - System.exit( 1 ); + System.err.println( "*** ERROR *** BuildTools should be run with Java 7 or above." ); + System.err.println( "*** ERROR *** Use java -version to check your Java version." ); + return; } try |