title: cannot find symbol: .getRuntime()
body: <p>The problem that I am facing when I compile the program is that java doesn't recognize the ".getRuntime()" method. 
  Here is my code below: </p>
  
  <pre><code>   import java.lang.*;
      public class Temp
     {
         public static void main(String [] args)
        {
           Process p = new ProcessBuilder("cmd.exe").start(); 
           p = new Runtime.getRuntime().exec("cmd /c start cmd");
        } // main method
     } // Temp class
  </code></pre>
  
  <p>Here is the Error message:</p>
  
  <pre><code>    Temp.java:7: cannot find symbol
      symbol  : class getRuntime
      location: class java.lang.Runtime
         p = new Runtime.getRuntime().exec("cmd /c start cmd");
                        ^
  </code></pre>
  
  <p>1 error</p>