X11 DISPLAY
ProgrammerAI (4)

Is there a way to use an X11 display on repl? Because I have a java program that apparently needs it. Every time I run, it gives me this error:

Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
at java.awt.Window.<init>(Window.java:536)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:233)
at Server.<init>(Server.java:19)
at Main.main(Main.java:4)

HELP!
My Code

You are viewing a single comment. View All
Answered by SPQR (414) [earned 5 cycles]
View Answer
Vandesm14 (690)

I don't think repl.it currently supports X11. Hopefully they will soon!

Please mark this as answered if I helped your problem 👍

ProgrammerAI (4)

@Vandesm14 How can i make sure that the Repl team knows? My role is an explorer.

SPQR (414)

@Vandesm14 They do, he just hadn't set his display variable to the main display.