新问题:~~~~~~~
在linux下用-Djava.awt.headless=true后就能显示出图形,再进行字体设置后图形上的中文也能显示了。
但是我将此如法炮制到HP-UX(版本为B11.11,语言为en)上时,却发现图形依旧不能显示,错误提示还是Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable
应用服务器还是WebSphere5.0,加上-Djava.awt.headless=true参数后,应用服务器已经经过了重新启动,该设置应该是生效了,但为什么还是出现Can't connect to X11 window server using ':0.0'
as the value of the DISPLAY variable错误呢?
请各位帮忙!
我尝试用export DISPLAY=:0.0
设置DISPLAY变量的值,机器名用的是Windows客户端的IP(本机为Windows2003)
结果出现如下错误:
Can't connect to X11 window server using '192.168.0.18:0.0' as the value of the DISPLAY variable.
是不是因为Windows机器不能做X11 Server啊?