JFreeChart uses on redhat Linux

xiaoxiao2021-03-06  45

A few days ago, JFreeChar was used in the project, using normal, but moved to the Linux platform, some problems have occurred, after research, smooth resolution. Now, these questions are sorted out, for your reference: Real: Redhat Advance Server 3.0 JDK1.4.0 resin2.1.14 1. Unable to draw graphics: Throwing exception, can't connect to x11 window server using ': 0.0' as the value of the display variable solution: Check if xwindow related libraries have been installed After the system adds an environment variable in the system: export display = localhost: 0.0 Restart the web problem solution. 2. Chinese in the graphic Workaround Solution: 1) Enter the directory / usr / share / fonts / zh_cn / trueType / 2 Opening file fonts.dir 3) Copy a font, I use -arphic technology Co.--ar pl sungtil gb-medium-r-normal - 0-0-0-C-0-ISO10646-1 font In Notepad and change the font to Java format: -arphic technology Co.--Ar Pl Sungtil GB-Medium-R-NORMAL - * -% D - * - * - C - * - ISO10646-1 4) Enter a directory: [java_home] / jre / lib / 5) The system comes with a file file with font.properties.zh.Turbo, copies into font.properties.izh. Replace the font format in this file to -arphic Technology Co . - Ar Pl Sungtil GB-Medium-R-NORMAL - * -% D - * - * - C - * - ISO10646-1.

6) Finally, add AppendedFontPath = / usr / share / fonts / zh_cn / trueType at the end of the Font.Properties.en file, because JRE can't find the REDHAT TRUETYPE Font Library 6) Restart the web service, and the problem is resolved.

转载请注明原文地址:https://www.9cbs.com/read-75576.html

New Post(0)