mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-25 15:16:02 +00:00
25 lines
547 B
Java
25 lines
547 B
Java
import java.lang.Integer;
|
|
|
|
public class JavaCheck
|
|
{
|
|
private static final String[] keys = {"os.arch", "java.version", "java.vendor"};
|
|
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);
|
|
}
|
|
}
|