The project, run perfectly, but when i clean & build my project, compiler print this notes:
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
And when i run the .jar file, this method return error(when run in IDE, not appear this error):
@Override //Override from ImageObserver implements
protected Object loadResource(URL url) {
try {
return ImageIO.read(url);
}
catch(Exception e) {
System.out.println("No se pudo cargar la imagen " + url + "\n"
+ e.getClass().getName()+" "+e.getMessage());
System.exit(0);
return null;
}
}
What’s my problem/error?