Replace New with other solution?
<p>This code has lot of trouble for my AIR 2.0 Native process which I tried to launch Java from AIR application, then the Java.exe terminate itself in the Windows Task manager, I found that <code>new MidiTest()</code> was the caused. Is there a better solution for new instance?</p>

<pre><code> public static void main(String[] arg) {
   BufferedReader in  = new BufferedReader(new InputStreamReader(System.in));
   while (!(speed.equals(speed_stop))) {
    try {
        speed = in.readLine();
        if(!(Global.newPlayer.equals("1"))){new MidiTest();}
    } catch (IOException e) {
        System.err.println("Exception while reading the input. " + e);
    }
   }
 }
 private MidiPlayer player;

 public MidiTest() {
  System.out.println("Start player");
  // /*
 }
</code></pre>
