title: How can I initialize Process proc without running exec on my Runtime rt?
body: <p>My IDE is complaining that it doesn't know if proc was initialized:</p>
  
  <pre><code>Process proc
  </code></pre>
  
  <p>It's complaining because the initialization of proc is happening inside try scope:</p>
  
  <pre><code>// Runtime Getter
          Runtime rt = Runtime.getRuntime();
          BufferedReader stdInput;
          BufferedReader stdError;
  
          // Get output for this executable
          String[] commands = {"system.exe","-get t"};
          Process proc;
          try{
              proc = rt.exec(commands);
              stdInput=new BufferedReader(new InputStreamReader(
                      proc.getInputStream()));
              stdError=new BufferedReader(new InputStreamReader(
                      proc.getErrorStream()));
  
          }catch(IOException e){}
  </code></pre>
  
  <p>Isn't it bad to put everything that's complaining inside a try block? Is there another nicer way?</p>