title: Newer version of JRE doesn't load soundbank but older version does
body: <p>I have the following code that tries to load a soundbank. I've tested the code on Windows 7 with JRE 1.6.03 and 1.6.43. The old version of the JRE (1.6.03) works fine but the new version throws an exception. What's going on?</p>
  
  <pre><code>public Main() {
      try {
          Synthesizer synth = MidiSystem.getSynthesizer();
          synth.open();
          BufferedInputStream soundBankStream = new BufferedInputStream(
                  getClass().getClassLoader().getResourceAsStream(
                          "soundbank.gm"));
          synth.loadAllInstruments(MidiSystem.getSoundbank(soundBankStream));
      } catch (MidiUnavailableException e) {
          e.printStackTrace();
      } catch (InvalidMidiDataException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>F:\&gt;java -version
  java version "1.6.0_03"
  Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
  Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
  
  F:\&gt;java -jar Test2.jar
  
  F:\&gt;"C:\Program Files\Java\jre6\bin\java.exe" -version
  java version "1.6.0_43"
  Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
  Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
  
  F:\&gt;"C:\Program Files\Java\jre6\bin\java.exe" -jar Test2.jar
  javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
          at javax.sound.midi.MidiSystem.getSoundbank(Unknown Source)
          at com.gulshansingh.test.Main.&lt;init&gt;(Main.java:24)
          at com.gulshansingh.test.Main.main(Main.java:14)
  </code></pre>
  
  <p>You can download the soundbanks from here: <a href="http://www.oracle.com/technetwork/java/soundbanks-135798.html">http://www.oracle.com/technetwork/java/soundbanks-135798.html</a></p>