ºìÁªLinuxÃÅ»§
Linux°ïÖú

Linux ÏÂjavaͼÏñ´¦Àí

·¢²¼Ê±¼ä:2008-06-07 22:23:45À´Ô´:ºìÁª×÷Õß:Deaboot
µ±linux·þÎñÆ÷ÉÏûÓÐ×°xwindowsʱ£¬´¦ÀíͼÏñʱ»á±¨

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

Õâ¸ö´í¡£

Ô­ÒòÊÇwindowsÄں˼¯³ÉÁËgui£¬¶ølinuxÉÏûÓÐÆô¶¯x server

½â¾ö°ì·¨£º

1¡¢Æô¶¯x server

2¡¢ÔÚTomcatÆô¶¯Ê±²ÎÊýÉϼÓ-Djava.awt.headless=true,¼´ bin/startup.sh -Djava.awt.headless=true

¸Ã·½·¨ÊÇ´¿Java»æͼ¾Í²»»á³öÏÖÐèÒªX ServerÖ§³Ö,Èç¹ûÕâÖÖ·½·¨»¹²»ÐУ¬ÐèÒªÐÞ¸Äbin/catalina.sh,ÔÚ -Dcatalina.home="$CATALINA_HOME" \

-Djava.io.tmpdir="$CATALINA_TMPDIR" \

-Djava.awt.headless=true \
org.apache.catalina.startup.Bootstrap "$@" start \

Ìí¼ÓºìÉ«Ëùʾ²¿·Ö¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ