无法运行或 jai_imageio 或 ImageIO.getImageReadersByFormatName 无法获取对象
我正在运行一个使用 jai_imageio.jar 的程序,然后验证是否可以获取 ImageIO.getImageReadersByFormatName("tiff")
由于某种原因该程序正在其他服务器上运行,但是当我签出/将其加载到我的服务器中时,它总是会导致一个错误
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'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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来我不能删除这个问题,也没有回答它。我来回答一下。就像我发表的评论一样,将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.