First. I know that there already exists a variety of topics on how to access the image inside the jar file. Second. I tried many options and none of them did not work. Of cours
File.separator
in getResource()
- it always takes /
(think of it as an URL HREF)./
to ensure the class loader searches from the root of the class-path, rather than relative to the package of the class.good.PNG
is the correct case. It does not matter on the Windows file-system, but getResource()
is case-sensitive.