Why am I unable to access the desktop menus in MATLAB 7.5 (R2007b) when using XMing server?

4 views (last 30 days)
I have just installed MATLAB 7.5 (R2007b) on my Linux box and I am accessing MATLAB from my Windows system using the Xming Xserver.
When I attempt to access the menu item the selection highlighting and the cursor do not line up. The windows also resize themselves on start up after the initial time to be bigger than the display. If I execute MATLAB 7.4 (R2007a) on the same setup everything works correctly.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Oct 2013
The issue is due to a bug in the way menus implemented using Java 1.6 interact with Cygwin or Xming X server.
Here is the existing Sun bug that captures this issue:
<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6585992>
To work around this issue for 32-bit Linux machine, here are the steps:
(1) Set an environment variable as follows in the Linux environment:
% setenv AWT_TOOLKIT MToolkit
(2) Start MATLAB, set to display to the Cygwin/X client.
(3) Confirm the environment variable is set by running:
java.awt.Toolkit.getDefaultToolkit
Expected answer is
ans = sun.awt.motif.MToolkit@...
If the result is XToolkit, the environment variable has not been properly set.
(4) Restart MATLAB
Note that this may cause the background color of the text areas of the Desktop to be gray rather than white, but that can be fixed via adjusting color preferences.
To work around this issue for 64-bit Linux machine, change the JRE being used by MATLAB 7.5 to JRE 1.5.0_14. It can be downloaded from
<http://java.sun.com/javase/downloads/index_jdk5.jsp>
To make MATLAB use this particular version of JRE, set the MATLAB_JAVA environment variable according to the steps mentioned in the link below:
<http://www.mathworks.com/matlabcentral/answers/103056>

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2007b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!