打包时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

你可能感兴趣的:(eclipse,sun)