title: Exported application from Processing fails to read serial port
body: <p>I am building a processing app which reads the serial port using:</p>
  
  <pre class="lang-java prettyprint-override"><code>setup(){
      myPort = new Serial(this, Serial.list()[5], 9600);
  }
  
  draw(){
      while (myPort.available() &gt; 0) {
          int inByte = myPort.read();
          // my code here
      }
  }
  </code></pre>
  
  <p>This works perfectly while testing from Processing. When exporting as a mac application, the whole thing crashes and burns as soon as actual input is received from the serial port.
  (the app runs fine, but when I press my Arduino button, it crashes).</p>