blob: aba3d81282929ee5ee2898c91bd8674e7a332fc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 );
}
}
|