summaryrefslogtreecommitdiffstats
path: root/depends/javacheck/JavaCheck.java
blob: 11420b86d25f60a87abdccbcf80be0c5dfa9c1be (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);
	}
}