MultiMC5/depends/javacheck/JavaCheck.java

25 lines
397 B
Java
Raw Normal View History

import java.lang.Integer;
public class JavaCheck
{
2013-12-11 03:54:39 +00:00
private static final String[] keys = {"os.arch", "java.version"};
public static void main (String [] args)
{
2013-12-11 03:54:39 +00:00
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);
}
}