0

任何人都知道如何让 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)
4

1 回答 1

0

解决它!

我的路径中有一个旧文件plumstoneserv.jar,它正在停止工作。

于 2015-03-12T08:46:08.100 回答