Implementing 2D Arrays: Image Manipulation in IDE

I want to implement 2D Arrays: Image Manipulation Project in Eclipse but I can’t seem to get the ImageIO.read function to work.
I have the workspace located at C:\Users\username\eclipse-workspace\ImageProcessor\src and the apple.jpg is also saved in the \src folder but I get an exception of “Failed to load image: Can’t read input file!” when trimBorders() is called so I tried running the debugger and it seems like imgToTwoD() returns a null when trying to read the file URL “./apple.jpg”

Update: Managed to make it work after finding out where the base directory was for an Eclipse project (/workspace-name/project-name/).