Java Sound: devices found when run in IntelliJ, but not in SBT

假如想象 提交于 2019-12-01 20:24:38

SBT runs your application in-process, with some classloader magic, which probably prevents MidiSystem from finding (using SPI) the sound components.

You can try forking a new JVM to run your application: fork in run := true. See Forking in the documentation.

Note that:

  • by default it does not redirect input to the application. You can add that with:

    connectInput in run := true
    
  • the forked JVM can be killed by any external tool without problem (using kill or any kind of task manager)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!