Posted December 26, 20213 yr I am trying to run a forge server, but the following error is generated when i try to start the server: root@minecraft:/home/forge# java -Xmx5000M -Xms2048M -jar forge.jar nogui JVM info: Debian - 17.0.1 - 17.0.1+12-Debian-1deb11u2 java.net.preferIPv4Stack=true Found java version 17.0.1 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.<init>(Window.java:553) at java.desktop/java.awt.Frame.<init>(Frame.java:428) at java.desktop/java.awt.Frame.<init>(Frame.java:393) at java.desktop/javax.swing.SwingUtilities$SharedOwnerFrame.<init>(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:177) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:147) Minecraft version 1.18.1
December 26, 20213 yr Author 7 minutes ago, diesieben07 said: It appears you renamed the installer "forge.jar" and are trying to launch it as if it were a server. You are indeed correct, i must have been confused while following a tutorial. It seems the tutorial was outdated and that all i had to do was run the "run.sh" file Edited December 26, 20213 yr by BOb4
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.