I got the same X window error:
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable
I failed to install Xvfb on my solaris so I installed VNC.
I started VNC and Tomcat as root, according to previous post, this should solve the problem. But I still get the error message.
I changed the DISPLAY to 1:0, 1.1, 2.0, none of them work.
Anyone knows where is the problem?
Which DISPLAY varible should I use to work with VNC?