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"