在linux(redhat8.0)上使用java.awt.Font是不是需要Xwindow支持
gyn 2004-09-06 06:40:58 import java.awt.Font;
public class test
{
public static void main(String[] args){
Font f = new Font("Arial", Font.PLAIN, 12);
System.out.print(f.getFamily());
}
}
运行这个程序报错Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.不知大家有没有碰到过这问题