This is a question that has been asked like 100 times on this site, but I have looked at all of them and even though they all were solved, none of the solutions worked for m
Try This
private BufferedImage get(String path) throws IOException{ URL url = this.getClass().getClassLoader().getResource(path); String thing = url.getFile(); return ImageIO.read(new File(thing)); }