Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update

 
Poorav Chaudhari
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am noticing this error since I did the Mac update. The Mac update included the java update. Right now the java version is 1.6.0_31. My Mac OS X version is 10.7.3. I am seeing the problem for all the soundfont files that I am trying to load. The error i get is.

javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:565)
at myPackage.MyMusicApp.main(MyMusicApp.java:14)

Below is a small program I built that shows the code.



I am not sure what the previous build of java I was on, but i know that it was a 1.6 version. Any ideas of what could have caused this?

thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic