Search:

Type: Posts; User: cl2606

Search: Search took 0.11 seconds.

  1. Replies
    17
    Views
    8,479

    [SOLVED] Re: no sound from executable jar file

    okay...I now understand a bit more about the getResource, etc. When Norm first suggested that I got stuck. getResourceAsStream returns an InputStream, no problem, I got that. But then I needed to...
  2. Replies
    17
    Views
    8,479

    [SOLVED] Re: no sound from executable jar file

    Okay..I went to the original computer and moved the jar file into a folder by itself and it didn't work. I then added the wav files to the folder and it worked.

    So, then back to the "new"...
  3. Replies
    17
    Views
    8,479

    [SOLVED] Re: no sound from executable jar file

    I moved it to a completely different computer.

    Here is the error I get:

    javax.sound.sampled.UnsupportedAudioFileException: could not get audio input str
    eam from input file
    at...
  4. Replies
    17
    Views
    8,479

    [SOLVED] Re: no sound from executable jar file

    Okay, I got it working. I found the code at anyexamples.com that reads the file as a stream. It can be found here.

    So I created an executable jar that runs and the sound works....on the computer...
  5. Replies
    17
    Views
    8,479

    [SOLVED] Re: no sound from executable jar file

    No problem. Thanks for the help.

    Curt
  6. Replies
    17
    Views
    8,479

    [SOLVED] Re: no sound from executable jar file

    I placed printStackTrace in all the catch blocks but nothing is being thrown.

    Here is the code after I briefly tried to getResourceAsStream working. It was a quick attempt before I got called...
  7. Replies
    17
    Views
    8,479

    [SOLVED] Re: no sound from executable jar file

    Norm,

    Thanks for the reply. There were no errors when I ran java -jar ... It is probably in that I'm reading the wav files as "files" and not using getResourceAsStream. Now I just have to...
  8. Replies
    17
    Views
    8,479

    [SOLVED] no sound from executable jar file

    I wrote a program that uses wav files. It works in Eclipse but when I create an executable jar file the sounds no longer plays.

    Any ideas as to what's going on and the fix that is required?
    ...
Results 1 to 8 of 8