Jre 1.7 Midi Soundbank problem

I have a problem with the new JRE 1.7.
My game’s midi doesn’t work anymore.

The Exception occurs here:


soundbank = MidiSystem.getSoundbank(new File("Soundbank"));

The Exception is:


javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
	at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:599)
	at Game.Main.Submain.Audio.MPlayer.getMidiTools(MPlayer.java:123)
	at Game.Main.Submain.Audio.MPlayer.init(MPlayer.java:103)
	at Game.Main.Submain.Audio.MPlayer.<init>(MPlayer.java:86)
	at Game.Main.Submain.Audio.MusicReaderMidiPlayer.init(MusicReaderMidiPlayer.java:67)
	at Game.Main.Submain.Audio.MusicReaderMidiPlayer.<init>(MusicReaderMidiPlayer.java:52)
	at Game.Main.MainEngine.init(MainEngine.java:65)
	at Game.Main.MainEngine.<init>(MainEngine.java:51)
	at Game.Main.Main.init(Main.java:66)
	at Game.Main.Main.<init>(Main.java:52)
	at Start.exe.main(exe.java:39)
Exception in thread "main" java.lang.NullPointerException
	at com.sun.media.sound.SoftSynthesizer.loadAllInstruments(SoftSynthesizer.java:791)
	at Game.Main.Submain.Audio.MPlayer.getMidiTools(MPlayer.java:134)
	at Game.Main.Submain.Audio.MPlayer.init(MPlayer.java:103)
	at Game.Main.Submain.Audio.MPlayer.<init>(MPlayer.java:86)
	at Game.Main.Submain.Audio.MusicReaderMidiPlayer.init(MusicReaderMidiPlayer.java:67)
	at Game.Main.Submain.Audio.MusicReaderMidiPlayer.<init>(MusicReaderMidiPlayer.java:52)
	at Game.Main.MainEngine.init(MainEngine.java:65)
	at Game.Main.MainEngine.<init>(MainEngine.java:51)
	at Game.Main.Main.init(Main.java:66)
	at Game.Main.Main.<init>(Main.java:52)
	at Start.exe.main(exe.java:39)

Does anyone here know a solution to this ?

For more information:
I changed nothing in the game.
It works well with 1.6 and not with 1.7.

The soundbankfile I use is the one found at

http://java.sun.com/products/java-media/sound/soundbanks.html

I used the deluxe version:

Java 7 replaces the proprietary Beatnik synthesizer with the open source Gervill synthesizer from OpenJDK. This requires soundbanks in SoundFont or DLS format.

It’s hidden away in the list of incompatibilities between 6 & 7 - http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#incompatibilities

Not sure if they’ve converted the old soundbanks anywhere.

Best wishes, Neil

Thank you for an answer to my problem, I use the default now which works at least,
that has to be the one you mentioned.
It got my game running again :slight_smile:

I hope I don’t find more problems concerning 1.7. :-\