Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: java problems in Ubuntu
Date: Tue, 9 Oct 2007 18:48:32 +0000 (UTC)
Organization: Columbia University
Lines: 25
Message-ID: <fegie0$9a0$1@fred.mathworks.com>
References: <fe0m73$q2h$1@fred.mathworks.com> <fe6jmb$bec$1@fred.mathworks.com> <fe8g4s$aig$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1191955712 9536 172.30.248.37 (9 Oct 2007 18:48:32 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 9 Oct 2007 18:48:32 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 671906
Xref: news.mathworks.com comp.soft-sys.matlab:432064



"Nathanael Greene" <nate.greene@gmail.com> wrote in message
<fe8g4s$aig$1@fred.mathworks.com>...
> I just upgraded to R2007b, and while I can now start the
> application outside of a terminal (which is great), I can no
> longer see anything, not even the command window, in the
> Matlab window when used in conjunction with Beryl.  Use of:
> "export AWT_TOOLKIT=MToolkit" in the Matlab script causes
> the program to crash.  2007b contains the most recent JRE
> version, so I can't even point it to the newer version.  Any
> ideas would be greatly appreciated.  I'm continuing to use
> it by turning off Beryl before, but I'd like to be able to
> use it with my computer as-is.  Thanks,
> Nate

I finally got 2007a to work with toolbars inside Beryl using
"AWT_TOOLKIT=MToolkit" on my AMD64 machine (kernel
2.6.18-5-amd64). The trick was to create a symbolic link:

[matlabroot]/sys/java/jre/glnxa64/jre1.5.0/lib/amd64/motif12 

to the motif21 directory. Before making this link I was
getting the following error: "Failed to start the Desktop:
Failure loading desktop class" with AWT_TOOLKIT set to
MToolkit. Not sure if this will help in your case, but it
might. Cheers, Tim