无法运行或 jai_imageio 或 ImageIO.getImageReadersByFormatName 无法获取对象 [英] Cannot run or jai_imageio or ImageIO.getImageReadersByFormatName cannot get Object
问题描述
我正在运行一个使用 jai_imageio.jar 的程序,然后验证是否可以获得 ImageIO.getImageReadersByFormatName("tiff")
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)
我已经用了半天时间来处理这个..但仍然无法弄清楚.我希望有人能告诉我的设置有什么问题.注意(jai_imageio.jar 和 jai_code_codec-1.1.3-alpha.jar)已经在我的 eclipse WEB-INF/lib 中
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
推荐答案
似乎我无法删除这个问题,也没有人回答它.我来回答一下.就像我发的评论一样,将jai的jar文件添加到tomcat目录下即可解决问题.
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.
这篇关于无法运行或 jai_imageio 或 ImageIO.getImageReadersByFormatName 无法获取对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!