Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: java problems in Ubuntu
Date: Thu, 29 May 2008 22:44:02 +0000 (UTC)
Organization: Lamont-Doherty Earth Observatory
Lines: 26
Message-ID: <g1nbji$t6f$1@fred.mathworks.com>
References: <fe0m73$q2h$1@fred.mathworks.com> <fe6jmb$bec$1@fred.mathworks.com> <fe8g4s$aig$1@fred.mathworks.com> <fegie0$9a0$1@fred.mathworks.com> <fehidn$n8f$1@fred.mathworks.com> <feigsc$2s6$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1212101042 29903 172.30.248.38 (29 May 2008 22:44:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 May 2008 22:44:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 671906
Xref: news.mathworks.com comp.soft-sys.matlab:471285



Just to follow up on this, in case anyone out there is
interested, I am now using Compiz version
0.6.3~git20080115.0ea58487-1 on Debian Lenny with kernel
2.6.24-1-amd64, and I am running Matlab 2008a. I have found
that the latest snapshot of the JRE is working relatively
well with Matlab, which you can find at
http://download.java.net/jdk6/binaries/. I instruct Matlab
to use this JRE by adding this line

export MATLAB_JAVA=/usr/lib/jvm/jdk1.6.0_10/jre/ 

to the Matlab startup script which for me is located at
/usr/local/matlab76/bin/matlab (your Matlab root may differ,
and the location of your JRE may differ). One key
requirement is that you create the symbolic link from
motif21 to motif12 in the amd64 directory which for me is
located in /usr/lib/jvm/jdk1.6.0_10/jre/lib/amd64 (again
your location may differ). I have found that the old
workaround "export AWT_TOOLKIT=MToolkit" cannot be set for
any of this to work. Also know that the motif12 link is a
total kluge that I don't understand, so proceed at your own
risk. Good luck!

Cheers,
Tim