MATLAB: Do I receive the error “Failure loading desktop class” when launching MATLAB on 64-bit Linux

MATLAB

When launching MATLAB on 64-bit Linux I receive the following error:
Unable to initialize com.mathworks.mwswing.MJStartup
Fatal Error on startup: Failure loading desktop class
I would like to know what this error means and how can I resolve it.

Best Answer

This error may indicate that there are missing X dependencies. In most cases installing the X Org libXtst library should resolve this issue. To do so, you can run the following command as root:
yum install libXtst
You may also be able to resolve this by installing an RPM for libXtst such as libXtst-1.0.1-3.1.x86_64.rpm.