Skip to main content

Can't install - no X11

1 reply [Last post]
robogeek
Offline
Joined: 2003-06-18

java -Djava.awt.headless=true -Xmx256m -jar ../glassfish-installer-9.0-b19.jar
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.(Window.java:317)
at java.awt.Frame.(Frame.java:419)
at java.awt.Frame.(Frame.java:384)
at javax.swing.SwingUtilities$SharedOwnerFrame.(SwingUtilities.java:1666)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1743)
at javax.swing.JDialog.(JDialog.java:212)
at com.sun.tools.xjc.installer.LicenseForm.(LicenseForm.java:44)
at com.sun.tools.xjc.installer.Main.main(Main.java:37)

And, of course, a common use-case for SERVER SOFTWARE installation is that there is no X11 display.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
amyroh
Offline
Joined: 2004-05-06

The next build should have the fix for this.

Meanwhile, the workaround is to add "-console" option.