Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: java problems in Ubuntu
Date: Sat, 6 Oct 2007 00:08:43 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 60
Message-ID: <fe6jmb$bec$1@fred.mathworks.com>
References: <fe0m73$q2h$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1191629323 11724 172.30.248.35 (6 Oct 2007 00:08:43 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 6 Oct 2007 00:08:43 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 274212
Xref: news.mathworks.com comp.soft-sys.matlab:431570



"Nathanael Greene" <nate.greene@gmail.com> wrote in message
<fe0m73$q2h$1@fred.mathworks.com>...
> I'm running Matlab R2007a in Ubuntu Feisty with Beryl, and I
> have several problems.  Firstly, I can't get matlab to run
> unless I run it as an application in a terminal.  Otherwise
> I receive the error:
>  Failed to start the Desktop: Failure loading desktop class

I have had a similiar problem with Suse 10.2 with R2007a. I
replaced the jre at
{matlabroot}/sys/java/jre/glnxa64/jre1.5.0 with the current
 jre from www.java.com/en/download/manual.jsp, which for me
was jre-6u3-linux-amd64.bin.  After installing the new jre I
updated the jre.cfg file with the jre version number and
matlab started up from the command line.  

To get it to start from my KDE menu I entered
   matlab -desktop  
 as the command in the KDE Menu Editor which allows it to be
started from a mouse click.

> 
> I also get this error when I start Matlab:
> Exception in thread "Thread-7" java.lang.NoClassDefFoundError
> 	at
com.mathworks.mde.editor.IDEEditor.<init>(IDEEditor.java:94)
> 	at
>
com.mathworks.mde.editor.IDEEditor.getInstance(IDEEditor.java:66)
> 	at
>
com.mathworks.mde.editor.EditorServices.loadBuiltinEditor(EditorServices.java:499)
> 	at
>
com.mathworks.mde.editor.EditorServices.loadEEIEditor(EditorServices.java:530)
> 	at
>
com.mathworks.mde.editor.EditorViewContainer.<clinit>(EditorViewContainer.java:165)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Unknown Source)
> 	at
>
com.mathworks.mde.desk.StartupClassLoader.callClassForName(StartupClassLoader.java:304)
> 	at
>
com.mathworks.mde.desk.StartupClassLoader.loadClass(StartupClassLoader.java:282)
> 	at
>
com.mathworks.mde.desk.StartupClassLoader.access$900(StartupClassLoader.java:27)
> 	at
>
com.mathworks.mde.desk.StartupClassLoader$LoadThread.run(StartupClassLoader.java:271)
> 
> I also get this error when trying to run the editor:
> ??? Error using ==> edit>handleError at 462
> Failed to open editor. Load of Java classes failed.
> 
> Finally, I am unable to see toolbars above the command
> window when running Matlab with Beryl.