pollymc/libraries/javacheck/JavaCheck.java

25 lines
547 B
Java
Raw Normal View History

import java.lang.Integer;
public class JavaCheck
{
private static final String[] keys = {"os.arch", "java.version", "java.vendor"};
2018-07-15 18:21:05 +05:30
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);
}
}