MultiMC5/libraries/javacheck/JavaCheck.java
2018-07-15 14:51:05 +02:00

25 lines
532 B
Java

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);
}
}