aboutsummaryrefslogtreecommitdiff
path: root/setup/java-test/Test.java
blob: 7d1b3972dcef3f92617ec838cd0ebee937ce2b89 (plain)
1
2
3
4
5
6
7
8
9
10
public class Test {
    public static void main(String[] a) {
        String[] versions = System.getProperty("java.version").split("\\.");
        int major = Integer.parseInt(versions[0]);
        if (major == 1) {
            major = Integer.parseInt(versions[1]);
        }
    	System.exit(major >= 7 ? 0 : 1);
    }
}