java.lang.ExceptionInInitializerError
at com.sun.kvem.png.PNGImageReader.getImageTypes(Unknown Source)
at com.sun.kvem.png.PNGImageReader.readImage(Unknown Source)
at com.sun.kvem.png.PNGImageReader.read(Unknown Source)
at com.sun.kvem.midp.GraphicsBridge.loadImage(Unknown Source)
at com.sun.kvem.midp.GraphicsBridge.createImageFromData(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.kvem.sublime.MethodExecution.process(Unknown Source)
at com.sun.kvem.sublime.SublimeExecutor.processRequest(Unknown Source)
at com.sun.kvem.sublime.SublimeExecutor.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Can't load standard profile: GRAY.pf
at java.awt.color.ICC_Profile$2.run(ICC_Profile.java:894)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.color.ICC_Profile.getStandardProfile(ICC_Profile.java:887)
at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:858)
at java.awt.color.ColorSpace.getInstance(ColorSpace.java:315)
at javax.imageio.ImageTypeSpecifier$Grayscale.<init>(ImageTypeSpecifier.java:700)
at javax.imageio.ImageTypeSpecifier.createGrayscale(ImageTypeSpecifier.java:781)
at javax.imageio.ImageTypeSpecifier.<clinit>(ImageTypeSpecifier.java:140)
... 12 more
看来是不支持。
J2ME 有标准的,对硬件厂商的实现,很多是有限的,兼容性差、扩展性不够好追问
哦,谢谢啦,那应该怎么做啊?如果不出现关于图片显示的程序代码,运行就不会出错,一旦要求显示图片,就出错,这个错误会不会是出在寻找加载图片的地方?