Java Can't Connect to X11 Window Server Using 'Localhost:10.0' as the Value of the Display Variable

Java Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable

This command helped me to solve the problem:

export DISPLAY=:0

Error : Can' t connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable

You have a couple of options to try:

  • Specify the -Djava.awt.headless=true parameter at startup time (either for your app or the server itself in the JVM_ARGS of the Server Start tab or startWebLogic.sh).

  • Try export DISPLAY=:0 before starting your weblogic server.

  • Check to see if the X Server is running in another port

  • Try to completely unset the display before starting the server unset DISPLAY

Java Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable

This command helped me to solve the problem:

export DISPLAY=:0


Related Topics



Leave a reply



Submit