Are you saying the program in the jar file executes OK on one PC and has problems loading images on another PC?
Type: Posts; User: Norm
Are you saying the program in the jar file executes OK on one PC and has problems loading images on another PC?
Nothing to do with a point class.
I'll reword it: The path should refer to where there is a file.
Sorry, what is "path point"? What I was talking about was the paths as you see them in a jar file using a tool like zip file tool.
I see now. I'll reword it: The path should point to where there...
You need to have the path point to where there is a file. It is not something that can be done remotely on this forum. You need to try many different combinations until you find the one that works.
Is the class in a package? Did you try it with the leading / on the path as copeg suggested?
Check the spelling and the path for correctness.
Does the URL returned by getResource() look correct? Add a println() call that prints it.
If the images are in the jar you need to access them as resources not files.
You can use a zip utility to look at the contents of a jar file to verify that the path to the images is correct.