I think my executable jar file is not working because the image I'm using is not being loaded. When I made a batch file and ran the jar it said
"IllegalArgumentException: input == null!"
BufferedImage image = ImageIO.read(Sprite.class.getResource(path));
this.width = image.getWidth();
this.height = image.getHeight();
this.pixels = new int[width * height];
image.getRGB(x, y, width, height, pixels, 0, width);
If anyone wants to know how I solved it:
I changed the
and I moved the images to the same location as the jar. For example, I had both the jar (exported it to the desktop) and the images on the desktop, and the path was "/" plus the file name.