I am working on a project and i am trying to set the icon for the frame. I debug it in eclipse and it works fine without a problem but when I go to export it, it does not find the image when i run the jar file.
Here is my try/catch
try {
frame.setIconImage(ImageIO.read(new File("res/Icon.png")));
} catch (IOException e) {
e.printStackTrace();
}
Here is my file structure.