package jvm.opts.env; import java.util.Properties; import java.util.Set; public class Main { public static void main(String[] args) { System.out.println("JVM information tool: "); System.out.println("=================================="); Properties properties = System.getProperties(); Set<Object> objects = properties.keySet(); for (Object o : objects) { System.out.println(o + " = " + System.getProperty(o.toString())); } System.out.println("=================================="); while (true); } }