Alakazizam Posted March 21 Share Posted March 21 Started playing with making a UI and I'm looking through this tutorial I've declared the image at the top with BufferedImage background; The error comes from when I try to read the image and set the variable onStart with try{ background = ImageIO.read(AKsSlayer.class.getResourceAsStream("/resources/background.png")); } catch(IOException e){ log(e); } It stops script and gives me a 'at javax.imageio.ImageIO.read(Unknown Source)' error in the log. The directory is there and so is the image, it is named correctly. Not sure if I'm supposed to do more than just drag and drop it in the folder? Quote Link to comment Share on other sites More sharing options...