Ask Your Question
0

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(X11GraphicsEnvironment.java:65)
    at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    at java.awt.Window.initGC(Window.java:475)
    at java.awt.Window.init(Window.java:495)
    at java.awt.Window.<init>(Window.java:537)
    at java.awt.Frame.<init>(Frame.java:420)
    at java.awt.Frame.<init>(Frame.java:385)
    at javax.swing.JFrame.<init>(JFrame.java:189)
    at Login.<init>(Login.java:24)
    at Login.main(Login.java:206)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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: https://ask.fedoraproject.org/en/ques...

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

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 207 times

Last updated: Jan 18 '17