I was having a problem where my image analysis program would crash whenever I used TIFF images. I found that the problem was that BufferedImage img = ImageIO.read(file)
was returning null, even though the file existed. With some extra research, I found that the ImageIO class doesn't support TIFF images by default, but that the Java Advanced Imaging JARS would fix my problem. I was wondering how I could get JAI working under eclipse (for windows) so that I could use my program. I've done some searching, bu there is no clear guide that I can find.
Alternatively, if there is a different class/method for reading images into BufferedImage
objects, I could use that. I even have the program detecting the file extension so if it works only for TIFF files that's fine.