任何人都知道如何让JFugue在MacOS X 10.10 / JDK 8上工作,与默认的合成器交谈?即使是在Windows上运行良好的简单例子也会产生这样的结果,表明找不到默认的合成器:
Exception in thread "main" java.lang.NullPointerException
at javax.sound.midi.MidiSystem.getFirstDevice(MidiSystem.java:1355)
at javax.sound.midi.MidiSystem.getFirstDevice(MidiSystem.java:1411)
at javax.sound.midi.MidiSystem.getFirstDevice(MidiSystem.java:1378)
at javax.sound.midi.MidiSystem.getDefaultDevice(MidiSystem.java:1165)
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1115)
at javax.sound.midi.MidiSystem.getSynthesizer(MidiSystem.java:351)
at javax.sound.midi.MidiSystem.getSequencer(MidiSystem.java:458)
at javax.sound.midi.MidiSystem.getSequencer(MidiSystem.java:392)
at org.jfugue.player.SequencerManager.getDefaultSequencer(SequencerManager.java:55)
at org.jfugue.player.SequencerManager.<init>(SequencerManager.java:50)
at org.jfugue.player.SequencerManager.getInstance(SequencerManager.java:41)
at org.jfugue.player.ManagedPlayer.<init>(ManagedPlayer.java:47)
at org.jfugue.player.Player.<init>(Player.java:46)
at FirstJFugueApp.main(FirstJFugueApp.java:11)
答案 0 :(得分:0)
修正了它!
我的路径中有一个旧文件plumstoneserv.jar,它阻止了工作。