Can't load standard profile: GRAY.pf

报错:

java.lang.IllegalArgumentException: Can't load standard profile: GRAY.pf
 at java.awt.color.ICC_Profile$2.run(ICC_Profile.java:894) ~[na:1.6.0]
 at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0]
 at java.awt.color.ICC_Profile.getStandardProfile(ICC_Profile.java:887) ~[na:1.6.0]
 at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:858) ~[na:1.6.0]
 at java.awt.color.ColorSpace.getInstance(ColorSpace.java:315) ~[na:1.6.0]
 at javax.imageio.ImageTypeSpecifier$Grayscale.<init>(ImageTypeSpecifier.java:700) ~[na:1.6.0]
 at javax.imageio.ImageTypeSpecifier.createGrayscale(ImageTypeSpecifier.java:781) ~[na:1.6.0]
 at javax.imageio.ImageTypeSpecifier.<clinit>(ImageTypeSpecifier.java:140) ~[na:1.6.0]
 at javax.imageio.ImageIO.write(ImageIO.java:1467) ~[na:1.6.0]
 at javax.imageio.ImageIO.write(ImageIO.java:1565) ~[na:1.6.0]

 

1:eclipse ->preferences ->Server->Runtime Environment->tomcat6 ->edit ->jre->installed jres

发现使用的jdk是:

D:\Program Files\Java\jdk1.6.0\

其中:D:\Program Files\Java\jdk1.6.0\jre\lib\cmm目录是空的

2:把C:\Program Files (x86)\Java\jre6\lib\cmm,目录中的几个文件copy到D:\Program Files\Java\jdk1.6.0\jre\lib\cmm

3:ok

 

你可能感兴趣的:(Can't load standard profile: GRAY.pf)