<div>Hi,I'd like to update some findings.</div><div><br></div><div>My compouter runs CentOS 6.4 x64, and I install openjdk 1.8 x86_64, then I find the problem went away. :) </div><div>The former openJRE is from another computer which runs CentOS 6.6 x86, and I installed openjdk 1.8 and copied the jre folder to my project as part of installation. </div><div><br></div><div>I hope this jre folder can runs everywhere, and <span style="line-height: 1.5;">I don't know if it loses some libraries. Actually I copied following 3 libraries to jre i386 directory in order make it runs.</span></div><div><span style="line-height: 1.5;"><br></span></div><div><span style="line-height: 1.5;">1. libfreetype.so</span></div><div><span style="line-height: 1.5;">2. libfontconfig.so</span></div><div><span style="line-height: 1.5;">3. libexpat.so</span></div><div><span style="line-height: 1.5;"><br></span></div><div><span style="line-height: 1.5;">Indeed</span><span style="line-height: 1.5;"> it runs well most time except this jfreechart issue. I guess it still miss some libraries. But I'm not sure. Who can help with it ?</span></div><div><span style="line-height: 1.5;">As to why I copy existing jre foler rather than install a new openjre because Oracle JRE is a tar file and I like it. I used to embed all necessary parts into project and so I won't ask customer to install this or that dependency part.</span></div><div><div><span style="line-height: 1.5;"></span></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "AAAA";<31731705@qq.com>;</div><div><b>Date: </b> Sat, May 7, 2016 12:19 PM</div><div><b>To: </b> "awt-dev"<awt-dev@openjdk.java.net>; <wbr></div><div></div><div><b>Subject: </b> <AWT Dev> An issue of OpenJRE</div></div><div><br></div><div>If this mail distrub you please ignore that, sorry for inconveniences. I really hope to get your help.</div><div><br></div>Recently I'm porting a project form oracle jdk to open jdk, and compile process is smooth and most parts runs well, but jfreechart cannot work. <div>I have submitted a question to jfreechart forum (http://www.jfree.org/forum/viewtopic.php?f=3&t=117569&p=179724#p179724<span style="line-height: 1.5;">).</span></div><div><span style="line-height: 1.5;"><br></span></div><div><span style="line-height: 1.5;">However after sometime troubleshooting, I find the problem is related with open jre. That means jfreechart works fine in oracle jre but fails in open jre.</span></div><div><span style="line-height: 1.5;">Again I find more details, when I run following codes I will get wrong result, which causes jfreechart not to work.</span></div><div><span style="line-height: 1.5;"><br></span></div><div><div><span class="Apple-tab-span" style="white-space: pre;">    </span>        BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB);</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>        Graphics2D g2 = image.createGraphics();</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>        FontMetrics fm = g2.getFontMetrics();</div><div style="line-height: 1.5;"><br></div></div><div style="line-height: 1.5;">The fm includes strange value, if I switch to oracle jre fm has right value. I don't know why. Can somebody help me?</div></div>