thecoder-001 / MineColab

Run Minecraft Server on Google Colab.
GNU General Public License v3.0
244 stars 57 forks source link

NO X11 DISPLAY #116

Closed ivanlm2604 closed 1 week ago

ivanlm2604 commented 3 weeks ago

it says no x11 DISPLAY variable and I don't know what to do, please help

java.awt.HeadlessException:

No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166) at java.desktop/java.awt.Window.init(Window.java:501) at java.desktop/java.awt.Window.(Window.java:453) at java.desktop/java.awt.Window.(Window.java:608) at java.desktop/java.awt.Dialog.(Dialog.java:675) at java.desktop/java.awt.Dialog.(Dialog.java:520) at java.desktop/javax.swing.JDialog.(JDialog.java:423) at java.desktop/javax.swing.JOptionPane.createDialog(JOptionPane.java:956) at net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:279) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166) at java.desktop/java.awt.Window.(Window.java:553) at java.desktop/java.awt.Frame.(Frame.java:428) at java.desktop/java.awt.Frame.(Frame.java:393) at java.desktop/javax.swing.SwingUtilities$SharedOwnerFrame.(SwingUtilities.java:1919) at java.desktop/javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1995) at java.desktop/javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1695) at java.desktop/javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:874) at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:676) at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:647) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:185) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154)

N-aksif-N commented 2 weeks ago

add this !export DISPLAY=:0.0 to your code

N-aksif-N commented 2 weeks ago

Hi @ivanlm2604, this is an advertisement about another project: Minecolab_Improved.

It may be helped you about your issues. Have a nice day!

N-aksif-N commented 2 weeks ago

May be this helped too, https://github.com/thecoder-001/MineColab/issues/88

ivanlm2604 commented 1 week ago

thanks !!!