0

I have connected Linux server (centos 64bit)using VNC viewer. Then I have tried to run java swing application using this command (java -jar app.jar).

I am getting this error "Can't connect to X11 window server using ': 2.0' as the value of the DISPLAY variable"

Selvam R
  • 101
  • 2

1 Answers1

1
  1. ensure there is display at :2.0 (looks like you had white space?)
  2. ensure that the display allows clients to connect from some where. (xhost + ...)

( xhost + will allow every client to connect. You can restrict to your ip or some thing like that.)

Jayan
  • 371