How to run a Scala application in a jar file while setting the classpath

Background: I don’t know why, but without looking into it, all I know is that I could not use the Java Sound API from within SBT. Whenever I tried sbt run, I kept getting the following error message, even though I knew that my app and sound file worked when I packaged my Java application normally:

javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file

As part of the debugging process I created a little shell script named run.sh that contained these two lines:

Syndicate content