Because of the project needs, swing has written an interface packaged as a jar to provide to the other side of the call. has been used jdk1.7, no problem, it is ready to give them. Later they told me that my JDK version was too high for them to call up with a 1.6 jdk. Simple, then change the JDK to recompile it? That is to say, but also a little trouble, changed the jdk1.6 after the garbled, and I am also very depressed. The last side of the article [http://www.linuxidc.com/Linux/2009-10/21991.htm] solved my problem.
Just a few orders, here's a note.
#先进入到 $JRE _home/lib/fonts/directory cd/opt/sun-java/jdk1.6.0_20/jre/lib/fonts# create fallback directory mkdir fallback# into the newly created directory CD fallback# font copy come over cp/usr/share/fonts/truetype/wqy/*.*./#执行mkfontscalemkfontscale # Go back to the previous directory CD. #把生成的文件内容拷贝添加到fonts. dir file behind cat Fallback/fonts.scale >> Fonts.dir
At this point, re-execute the next procedure. Done. These commands are required by the root user to execute if they have insufficient permissions.
Ubuntu12.04 Swing garbled