I am currently writing a program that I need to send to a friend as a jar. The program has images that need to be loaded for the program to work properly and I want it all to be
Despite anything else your code has the unenviable property of being fail-slow.
Try something like
URL x = get class.getclassloader.getresource(...) If x == null Throw new defect "expected ... But it wasn't there"
Sorry for the formatting, but the iPad makes it too hard to do it right.