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...
Type: Posts; User: cl2606
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...
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"...
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...
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...
No problem. Thanks for the help.
Curt
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...
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...
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?
...