ProgrammerAI (8)

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)

My Code

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

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

Please mark this as answered if I helped your problem 👍

ProgrammerAI (8)

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

SPQR (524)

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