MATLAB: Do I get an error relating to X11 when using the Silent Installer for MATLAB on Linux

MATLAB

When running the silent installer on a Linux machine without an X server I get the following error:
java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$100(Unknown Source)
at sun.awt.X11GraphicsEnvironment$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at sun.awt.X11.XToolkit.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.Toolkit$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
at java.awt.Toolkit.getEventQueue(Unknown Source)
at java.awt.EventQueue.invokeLater(Unknown Source)
at javax.swing.SwingUtilities.invokeLater(Unknown Source)
at com.mathworks.wizard.WizardLauncher.startWizard(WizardLauncher.java:170)
at com.mathworks.wizard.WizardLauncher.startSilentWizard(WizardLauncher.java:113)
at com.mathworks.wizard.WizardLauncher.start(WizardLauncher.java:68)
at com.mathworks.installwizard.Launcher.run(Launcher.java:37)
at com.mathworks.installwizard.Launcher.main(Launcher.java:33)
(Feb 15, 2011 12:12:36) Error: The application encountered an unexpected error and needs to close. More information can be found at /tmp/mathworks_install.log
I thought the silent installer could run without an X Server. How can I run the silent installer without X11?

Best Answer

This issue occurs if you do not have an X Server installed and you have the DISPLAY environment variable set. This variable should not be set if you do not have an X Server installed.
To resolve this issue you can unset the DISPLAY variable and restart the installer. The installer should then complete successfully.
Related Question