I have a specific texture var1.jpg, and I need to post it on the screen. The problem is that if during initialization of the variable storing the texture, you simply specify var1.jpg, then the program does not find the file, and if you specify the full path, then all the rules.
Actually, the question itself: how to make the texture called, for example, from a package that will be inside the program itself? That is, to end up with this: there is a program program.jar, in which there are 2 packages - com.start and com.image; when working, the program loaded images that were in com.image, and the program classes themselves were in com.start, and it does not matter in which directory program.jar is located.