Hello.
I’m having a stupid problem. I can’t properly pack a JAR 
I have manifest.mf file with: “Main-Class: viktorije.Viktorije”, directory (package) viktorije and Images directory (.png images). I use “jar -cfmv viktorije.jar manifest.mf viktorije Images” … classes are packet correctly but Images not. When I run it I get catched error it can’t load “Images\some_image.png”. How do I pack Images into jar? Thank you.
Edit:
I don’t know if it makes any difference, but here’s how I load images:
public static BufferedImage loadImage(String path) {
URL url = null;
try {
url = Viktorije.class.getClassLoader().getResource(path);
return ImageIO.read(url);
} catch (Exception e) {
System.out.println("Error loading image: " + path + " " + url);
System.exit(0);
return null;
}
}