I'm unable to load images in my game despite using what I thought was the proper file path in the java image class.
I've multiple file paths and extensions available, and have messed around with the file location as well, the current file structure is:
--src
-- main.java
-- images
-- the image
Image earth = new Image("file:projectName/images/img.png");
I expect it to show up once I launch my game, but it unexpectedly doesn't show up, and the game doesn't crash neither. Any help is greatly appreciated.