Compiz + MATLAB solution

By atchieu

MATLAB and Compiz do not mix (I am using Ubuntu 8.04). If you just installed MATLAB, in all likelihood MATLAB shows a window with nothing in it. For some reason MATLAB does not use the right JAVA toolbox or something along those lines. So we have to edit the launch file to do this. So add

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

to the /PATHTOMATLAB/bin/matlab lauch file so that it looks something like this:

#!/bin/sh

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

#
# Name:
# matlab script file for invoking MATLAB
#
# …

MATLAB should run much better. In my experience, it is much better than the export AWT_TOOLKIT==MToolkit trick. MATLAB will still be fickle with Compiz in place (well, anything will be fickle with Compiz running). The best solution, if you use MATLAB a lot, is to just not use Compiz or any other eye candy.

Compiz and MATLAB 2007 running at the same time!?!

Compiz and MATLAB 2007 running at the same time!?!

Tags: ,

Leave a Reply