Cannot run or jai_imageio or ImageIO.getImageReadersByFormatName cannot get Object

荒凉一梦 提交于 2019-12-07 08:56:56

问题


I'm running a program that using jai_imageio.jar and then validating if I can get ImageIO.getImageReadersByFormatName("tiff")

for some reason the program is running on other server, But when I checkout / load it into my server it always cause an error

java.util.NoSuchElementException
at javax.imageio.spi.FilterIterator.next(Unknown Source)
at javax.imageio.ImageIO$ImageReaderIterator.next(Unknown Source)
at javax.imageio.ImageIO$ImageReaderIterator.next(Unknown Source)

I've already spending half of my day with this.. but still can't figure it out. I hope someone can tell what's wrong with my setup. Note (jai_imageio.jar and jai_code_codec-1.1.3-alpha.jar) is already in my eclipse WEB-INF/lib


回答1:


Seems I cannot delete this question and no answered it. I'm going to answer it. Just like the comment I post, adding the jar files of jai into the directory of tomcat resolve the problem.



来源:https://stackoverflow.com/questions/4828757/cannot-run-or-jai-imageio-or-imageio-getimagereadersbyformatname-cannot-get-obje

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!