JDK-4929782 : Java Sound Demo: sound files are not loaded if working directory is different
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 5.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2003-09-29
  • Updated: 2006-05-31
  • Resolved: 2006-05-31
Related Reports
Duplicate :  
Description
The Java Sound Demo installs a directory JavaSoundDemo that contains JavaSoundDemo.jar and a subdir audio with sound files. If the Java Sound Demo is started with java -jar JavaSoundDemo.jar while the current working directory is JavaSoundDemo, it works like expected. However, if the demo is started from a different directory with a command like java -jar dir/dir/javaSoundDemo/JavaSoundDemo.jar, the sound files are not loaded (there is not list of filenames on the left side of the JukeBox tab. I suppose this is because the JavaSoundDemo uses filenames relateive to the current working directory to locate the files. If this is the case, a solution migt be to include the sound files into the .jar and load them from there.

Comments
PUBLIC COMMENTS Java Sound Demo: sound files are not loaded if working directory is different
10-06-2004

EVALUATION ###@###.### 2003-10-01 Should be fixed prior to the next release of the demo program.
01-10-2003