I have this code which is not working. Does anyone have an idea why? There are many readers coming up when I do a check on the registered readers, and that includes .jpeg and .bmp, which are both giving me the same error! I am using JDK 1.5.0_10
javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(Unknown Source) at Components.ImageApp.loadImage(ImageApp.java:28) at Components.ImageApp.loadAndDisplayImage(ImageApp.java:17) at Components.ImageApp.main(ImageApp.java:40) Exception in thread "main" java.lang.NullPointerException at Components.ImageApp.loadAndDisplayImage(ImageApp.java:18) at Components.ImageApp.main(ImageApp.java:40)