开发者

Java MIDI Synthesizer .jar not playing

开发者 https://www.devze.com 2023-02-09 22:42 出处:网络
I wrote a simple synth instrument gui that works well on my machine.However, as soon as I put it in a jar file, it no longer plays sounds 开发者_开发百科when executing that jar file.I assume that has

I wrote a simple synth instrument gui that works well on my machine. However, as soon as I put it in a jar file, it no longer plays sounds 开发者_开发百科when executing that jar file. I assume that has to do with the soundbank. Either way, I cannot get it to play a note on my machine when I run the jar file, so I presume it will not work on another person's machine. Any thoughts as to what might be going on? Thanks.

-Matt


did you pack in .jar file even sounds that should play? How do you run your .jar file?

Something about resources in your .jar file (what could be your case) you can read here. About running .jar files and troubles with them you can read here and here.

Good luck and let us know if it helps you.


You are probably running your tests in an IDE using the java JDK but testing the app from the jar using the JRE.

See on how to fix it: http://www.jsresources.org/faq_midi.html#jre_soundbank

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号