MineColab icon indicating copy to clipboard operation
MineColab copied to clipboard

Server does not start when using forge

Open darthagus opened this issue 8 months ago • 0 comments

If the server_type has been chosen as "forge" it always appear the message: 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.(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:177) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:147)

Steps to reproduce the behavior:

  1. Execute script "Maka-a-server" making variable server_type='forge'.
  2. Execute script "Automatically accept the EULA".
  3. Execute script "Run a Minecraft Server on Google Colab!"
  4. After connecting tunnel service, no matter which one, it always appears java error: 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.(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:177) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:147)

Expected behavior correct boot of forge server, showing a message like: "[20:04:54] [Server thread/INFO] [minecraft/DedicatedServer]: Done (212.495s)! For help, type "help"

Minecraft server Version Minecraft 1.19.2 Forge 43.3.0

Mod/Datapack list clear installation

Possible solution Changing line 68 !java $memory_allocation $server_flags -jar $jar_name nogui by ! ./run.sh

darthagus avatar Oct 24 '23 20:10 darthagus