DISPLAY
The DISPLAY environment variable tells program what display they should be started on. You will receive an error such as the below:
ERROR: Error: Installation cannot proceed. You may either:1. Set an X11 display, and restart the install process2. Use the silent install feature by specifying the -mode silent option
Or
ERROR: Exception in thread "main" com.google.inject.ProvisionException: Guice provision errors:1) Error injecting constructor, java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment at com.mathworks.instutil.wizard.JEditorPaneHyperlinkHandler.<init>(JEditorPaneHyperlinkHandler.java:57) while locating com.mathworks.instutil.wizard.JEditorPaneHyperlinkHandler while locating com.mathworks.instutil.wizard.HyperlinkHandler for parameter 5 at com.mathworks.wizard.ui.components.SwingComponentFactoryImpl.<init>(SwingComponentFactoryImpl.java:111)
To resolve this, you can temporarily set the DISPLAY variable for root to the value that is set for your user account.
Run the below as your user account:
This will show your display environment variable. Remember this for later. Now enter the below:
Where <DISPLAY> is the value of the DISPLAY variable from the printenv command.
If none of these suggestions work and you have an internet connection, try using MATLAB Package Manager to install MathWorks Products. The instructions and additional details for it can be found below.
MATLAB Package Manager