Ask Your Question

when i upgrade 24 to 25 this kind of message comes

asked 2017-01-17 23:38:25 -0600

updated 2017-01-18 04:22:16 -0600

hhlp gravatar image
No protocol specified
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.access$200(
    at sun.awt.X11GraphicsEnvironment$
    at Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(
    at java.awt.GraphicsEnvironment.createGE(
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
    at java.awt.Window.initGC(
    at java.awt.Window.init(
    at java.awt.Window.<init>(
    at java.awt.Frame.<init>(
    at java.awt.Frame.<init>(
    at javax.swing.JFrame.<init>(
    at Login.<init>(
    at Login.main(
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-18 07:58:04 -0600

albertocastro gravatar image

updated 2017-01-18 08:27:45 -0600

Fedora 25 comes with wayland as default instead of X11. Your program tries to comunicate with X11 but it's disabale, so you should enable it:

I don't know if java can work with wayland.

edit flag offensive delete link more

Question Tools


Asked: 2017-01-17 23:38:25 -0600

Seen: 207 times

Last updated: Jan 18 '17