You need to place the image files in the source root. So, if your source (relative to the Eclipse project) is src/mypackage/Squared/<files>, you need to put the image under the src folder. Then, in the code, use this to get the URL of the resource
this.getClass().getResource("filename");