I'm currently using the ij.jar in a Java application and using ImageJ to save some processed images to the disk. However, if I try to save an image to a file that already exists, the save fails silently. The original file remains untouched and ImageJ does not throw an error.
Here is a sample piece of code:
IJ.saveAs(image, filename);
Is there a way to have saveAs automatically overwrite if a file with the same name already exists?