summaryrefslogtreecommitdiffstats
path: root/libraries/javacheck/JavaCheck.java
blob: 69933040b1e638375900aaaf72cfcca0f41d3007 (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
import java.lang.Integer;

public class JavaCheck
{
    private static final String[] keys = {"os.arch", "java.version"};
    public static void main (String [] args)
    {
        int ret = 0;
        for(String key : keys)
        {
            String property = System.getProperty(key);
            if(property != null)
            {
                System.out.println(key + "=" + property);
            }
            else
            {
                ret = 1;
            }
        }
        
        System.exit(ret);
    }
}