I have defined my xorg.conf file to configure a dual monitor setup for my Linux machine. Please note that I am not using xinerama mode. In other words, the two displays are separate and are not merged into one desktop.
When I launch MATLAB on the first display (environment variable DISPLAY = :0.0), it works fine. However, when I launch MATLAB on the second display (DISPLAY = :0.1), I get the following error:
Unable to initialize com.mathworks.mwswing.MJStartup ... java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:691) at com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128) ...
Best Answer