javax.imageio.IIOException: Can't read input file!
That is the error I get every time I try to run the .jar file. Yet when I run it in the compiler it works just fine. I'm not sure what to make of this, here is the code any help you can provide will be appreciated.publicvoid setGraphic(String image){
String fileLoc = getClass().getResource("/com/siteName/Graphics/" + image).getPath();
try{
fileLoc = URLDecoder.decode(fileLoc,"UTF-8");
}catch (UnsupportedEncodingException ex){
ex.printStackTrace();
}
File file =new File(fileLoc);
try{
this.image = ImageIO.read(file);
}catch (IOException ex){
ex.printStackTrace();
}
}

