I
Ivar
Hey guys,
So in my applicationI'm trying to use the javax.imageio.ImageIO class
in order to read images from a location into a BufferedImage object
....so something like this...
try { image = ImageIO.read(new
File(filename));---------------------->Line 10
} catch(IOException e) {
e.printStackTrace();
throw new RuntimeException("Could not open file: " +
filename);
}
But at the end of it all when I run, I get this weird error...
sun.misc.ServiceConfigurationError:
javax.imageio.spi.ImageOutputStreamSpi: Provider
com.sun.media.imageioimpl.stream.ChannelImageOutputStreamSpi not found
at sun.misc.Service.fail(Unknown Source)
at sun.misc.Service.access$000(Unknown Source)
at sun.misc.Service$LazyIterator.next(Unknown Source)
at
javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(Unknown
Source)
at javax.imageio.spi.IIORegistry.<init>(Unknown Source)
at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source)
at javax.imageio.ImageIO.<clinit>(Unknown Source)
at appli.main(appli.java:10)---------------------> See line 10 above
Exception in thread "main"
This is a fairly confusing error for I've never seen anything like this
before...any suggestions? I would really appreciate it..
So in my applicationI'm trying to use the javax.imageio.ImageIO class
in order to read images from a location into a BufferedImage object
....so something like this...
try { image = ImageIO.read(new
File(filename));---------------------->Line 10
} catch(IOException e) {
e.printStackTrace();
throw new RuntimeException("Could not open file: " +
filename);
}
But at the end of it all when I run, I get this weird error...
sun.misc.ServiceConfigurationError:
javax.imageio.spi.ImageOutputStreamSpi: Provider
com.sun.media.imageioimpl.stream.ChannelImageOutputStreamSpi not found
at sun.misc.Service.fail(Unknown Source)
at sun.misc.Service.access$000(Unknown Source)
at sun.misc.Service$LazyIterator.next(Unknown Source)
at
javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(Unknown
Source)
at javax.imageio.spi.IIORegistry.<init>(Unknown Source)
at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source)
at javax.imageio.ImageIO.<clinit>(Unknown Source)
at appli.main(appli.java:10)---------------------> See line 10 above
Exception in thread "main"
This is a fairly confusing error for I've never seen anything like this
before...any suggestions? I would really appreciate it..