title: How to get commandLine & arguments of Process in Java 9
body: <p>Java 9 provied pretty way to get information of the <code>Process</code>, but I still don't know how to get the <code>CommandLine</code> &amp; <code>arguments</code> of the process:</p>
  
  <pre><code>Process p = Runtime.getRuntime().exec("notepad.exe E:\\test.txt");
  ProcessHandle.Info info = p.toHandle().info();
  String[] arguments = info.arguments().orElse(new String[]{});
  System.out.println("Arguments : " + arguments.length);
  System.out.println("Command : " + info.command().orElse("")); 
  System.out.println("CommandLine : " + info.commandLine().orElse(""));
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Arguments : 0
  Command : C:\Windows\System32\notepad.exe
  CommandLine : 
  </code></pre>
  
  <p>But I am expecting:</p>
  
  <pre><code>Arguments : 1
  Command : C:\Windows\System32\notepad.exe
  CommandLine : C:\Windows\System32\notepad.exe E:\\test.txt
  </code></pre>