Java MIDI Synthesizer .jar not playing

1.1k views Asked by At

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

2

There are 2 answers

5
kajo On

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.

0
Manuel Darveau On

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