Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: java problems in Ubuntu
Date: Wed, 10 Oct 2007 12:34:20 +0000 (UTC)
Organization: Columbia University
Lines: 41
Message-ID: <feigsc$2s6$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>
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 1192019660 2950 172.30.248.38 (10 Oct 2007 12:34:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 10 Oct 2007 12:34:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 671906
Xref: news.mathworks.com comp.soft-sys.matlab:432190



"Nathanael Greene" <nate.greene@gmail.com> wrote in message
<fehidn$n8f$1@fred.mathworks.com>...
> First of all, thanks for the response.  I tried that
> suggestion and received a Segmentation Fault when I tried to
> start Matlab.  Just to make sure I didn't do anything silly,
> I tried this two different ways.  I created the symbolic
> link using:
> ln -s
> [matlabroot]/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/motif21
> [matlabroot]/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/motif12
> 
> I then edited the Matlab script file and added:
> export AWT_TOOLKIT=MToolkit
> 
> When that produced the Seg Fault I removed it and tried
> running Matlab instead with:
> export AWT_TOOLKIT=MToolkit; matlab -desktop
> 
> This produced the same error.  Minus the AWT_TOOLKIT fix
> (with the symbolic link still in place) I still get a blank
> area for the entire MATLAB window (except for the Start
> button in the bottom left, which miraculously works
> perfectly).  Any other ideas?

Well, I was getting seg faults as well until I switched back
to the jre that shipped with my version of Matlab (2007a),
which is 1.5. Are you using the Java version that shipped
with your version? Is that 1.6? I was getting seg faults
with 1.6. You may want to try using a different jre. I would
try the one that ships with Ubuntu, or maybe you can
download a different version from the Sun website. This may
break other things with 2006b, but I'm not sure. It's worth
a try. 

Also, if you do try another version of Java, you will need
to make sure that you create the symbolic link discussed
earlier in the other Java directory, and tell Matlab to use
the different version. I think you have the symlink correct.
There needs to be a symlink called motif12 that points to
the real directory motif21. Also, are you using the amd64
version of Matlab? Cheers, Tim