Startup Issue with Minecraft - Issue with launching a modded minecraft server

System Information

Field Value
Operating System Linux - Ubuntu 24.04.2 on x86_64
Product AMP ‘Phobos’ v2.6.2.0 (Mainline)
Virtualization None
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Failed

Problem Description

The console error is posted below, sorry if it is obvious I am very new to this!
Issue

JVM info: Eclipse Adoptium - 21.0.7 - 21.0.7+6-LTS
java.net.preferIPv4Stack=true
Found java version 21.0.7
Exception in thread “main”
java.awt.HeadlessException:
No X11 DISPLAY variable was set,
or no headful library support was found,
but this program performed an operation which requires it,
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164)
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:1925)
at java.desktop/javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:2001)
at java.desktop/javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1696)
at java.desktop/javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:875)
at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:677)
at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:648)
at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:177)
at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:147)

Reproduction Steps

  • Install the correct forge version and update through the console
  • Unzip the server folder for the modpack I wish to run (SevTech)
  • Start the server