在linux上在畫(huà)圖和chart時(shí)好多人會(huì)碰到 Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
原因:因?yàn)橛玫搅藞D形處理,java程序會(huì)去尋找linux上的圖形界面是否啟動(dòng)
解決:不讓java尋找linux圖形界面即可,在java 啟動(dòng)時(shí)加選項(xiàng)java?-Djava.awt.headless=true?
實(shí)現(xiàn):如果是tomcat,在/usr/local/tomcat/bin/catalina.sh中修改為
JAVA_OPTS=-Djava.awt.headless=true
echo "Using CATALINA_BASE:?? $CATALINA_BASE"
echo "Using CATALINA_HOME:?? $CATALINA_HOME"
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
echo "Using RUNJAVA:?????? $_RUNJAVA"
echo "Using JAVA_OPTS:? $JAVA_OPTS"
java將不需檢測(cè),問(wèn)題自然解決
推薦大家使用 SwiffChartGen321-Eval-WXP.exe,SwiffChartGen321-Eval-Linux.tar.gz,都是評(píng)估版的,上面會(huì)打評(píng)估版水印,如果有能力可以破解,在linux版flash生成器上會(huì)出現(xiàn)中文問(wèn)題方塊顯示問(wèn)題,這個(gè)問(wèn)題的解決方案是用SwiffChart32-Pro-Eval-WXP.exe 制作新的Style,sytle中只要牽涉顯示中文的地方均選擇宋體,或華文中宋即可
下載地址http://www.globfx.com/