Matlab toolbar problems in ubuntu

Matlab might have problems drawing toolbars on ubuntu. This is especially true if you’re using nondefault theme in gnome. The solution is simple once again. Edit /path/to/matlab/bin/matlab with gedit and add following line below #!/bin/sh

export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre/

After this toolbars should be working.

Mainokset