Are there two different Java Relp types?
When I create a Java repl, it gives me a repl that doesn't seem to support things like the JOptionPane. Whenever I try to use it, it gives me an an error that:
Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
I know that using a Java Swing project works, but I've seen other repls that are able to use JOptionPane that are seem to be normal Java repls, when I hover over the icon:
it says, "Java," not, "Java Swing."
Is there a way to get GUI to work in a normal Java repl?