title: mac osx, run external jar with output
body: <p>I'm trying to run a external jar in mac osx, I want the output of it and set a property</p>
  
  <p>My code: </p>
  
  <pre><code>ProcessBuilder pb = new ProcessBuilder();
  System.setProperty("user.home", file1);
  Console.Out(System.getProperty("user.home"));
  ArrayList&lt;String&gt; args = new ArrayList&lt;String&gt;();
  args.add("java");
  args.add("-jar");
  args.add(jarFile);
  pb.command(args);
  Process p = pb.start();
  System.setProperty("user.home", ModMaker.Root + "/MCP/jars");
  BufferedReader bf = new BufferedReader(new InputStreamReader(p
          .getInputStream()));
  while(bf.readLine() != null)
      ;
  if(!new File(somedir).exists()) {
      int result = Joptionpane.showConfirmDialog(Gui.getFrame(),
              "Program isn't installed properly!\n\nRun It again?",
              "Not installed!", JOptionPane.YES_OPTION,
              JOptionPane.WARNING_MESSAGE);
      if(result == 0) {
          runAgain();
      }
  }
  </code></pre>
  
  <p>But when I run this, the bf.readLine is immediately null, and it say that it is stopped. But it isnt. And the Property isnt changed in the external process.</p>
  
  <p>EDIT: when I run this in windows it work normal!</p>