import java.util.List; import sun.management.ManagementFactory; public class VmArgument { public static void main(String[] args) { List<String> argus = ManagementFactory.getRuntimeMXBean().getInputArguments(); for (String arg : argus) { System.out.println(arg); } } }