首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

封装时sun.misc.ServiceConfigurationError

2012-11-03 
打包时sun.misc.ServiceConfigurationError用eclipse打包时,选了runnable jar,然后选Extract required lib

打包时sun.misc.ServiceConfigurationError

用eclipse打包时,选了runnable jar,然后选Extract required librariaries into generated JAR。

后来运行时就报下面的错误

?

sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageInputStreamSpi: Provider com.sun.media.imageioimpl.stream.ChannelImageInputStreamSpi could not be instantiated: java.lang.IllegalArgumentException: vendorName == null!

?

解决办法是不要选Extract required librariaries into generated JAR,选第三个

copy required librariaries into a sub-folder next to generated JAR

热点排行