Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4929782

Java Sound Demo: sound files are not loaded if working directory is different

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                amenkov Alex Menkov
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: