无法运行或jai_imageio或ImageIO.getImageReadersByFormatName无法获取Object [英] Cannot run or jai_imageio or ImageIO.getImageReadersByFormatName cannot get Object

查看:290
本文介绍了无法运行或jai_imageio或ImageIO.getImageReadersByFormatName无法获取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无法获取Object的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆