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 ?