I am experiencing a strange problem. Here is my snippet of code:
...
public xProgressBar(xTheme theme) {
    try {
      this.update = ImageIO.read(xTheme.class.getResource("/images/" + xThemeSettings.PROGRESSBAR_IMAGES[0]));
    }
...
And when I run a program, I am getting the following error:
Exception in thread "main" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(Unknown Source)
Here is a file structure:
As you can see, the res folder is at the root with the src folder. I have read a lot of similar questions, but nothing helped.

 
     
     
    
