Glad you figured it out.
Type: Posts; User: Norm
Glad you figured it out.
Why does the error keep moving around? What happened to The error in post#21
Please identify which classes are yours in the error message.
Look at the source lines referred to and see what...
Change the code to use a URL object and print that out the same as for the sound files.The check that what is printed out is in the jar file with the correct path
That looks like it is looking in the jar file.
What is ImageIO.read trying to do? What are its arguments? on line 19
What println printed it? Add an id string to ALL the println so you know which one is printing
...println("This is me printing theVar=" + theVariableHere);
Try using /
What is the null that was printed out?
Run it from the command prompt and copy the contents of the screen here.
java -jar <YOURJARFILENAME>.jar
To copy the contents of the command prompt window:
Click on Icon in upper left corner...
Does It work in the IDE? Now do it from the jar in a test folder.
Your URLs are all to disk files not to the contents of the jar file.
Where was the program executed that produced what you posted in post#7?
In the IDE or from the jar in a test folder.
What about printing out the URLs also. Do it both ways. In the IDE and standalone in the jar.
If it works in Eclipse, then its probably a path problem.
Try printing out the values of soundFileName and the URL so you can verify that they have correct values.