Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Problem with Matlab on Ubuntu Linux

Subject: Problem with Matlab on Ubuntu Linux

From: Amogh Rajanna

Date: 20 Aug, 2009 06:27:03

Message: 1 of 12

Hello Newsgroup

i have installed MATLAB on Ubuntu Linux.
But there is a problem with the installation.
When i type in matlab from the command prompt, MATLAB starts up & command window appears.
But the Standard Menu bar, Tool bar are NOT visible.
WHen i open the Editor, Figure window, Array Editor etc, the Standard Menu bar, Tool bar in these windows also are NOT visible. But when i dock the Editor, Figure window, Array Editor etc into the main window, the Standard Menu bar, Tool bar in these windows will become visible.

I don't understand what's happening.
Does anyone know what's going on & can suggest some solutions.
Please any help will be appreciated.

Thanks in advance
AMogh Rajanna

Subject: Problem with Matlab on Ubuntu Linux

From: Aurelien Queffurust

Date: 20 Aug, 2009 08:05:20

Message: 2 of 12

"Amogh Rajanna" <raja0088@umn.edu> wrote in message <h6iqbn$e66$1@fred.mathworks.com>...
> Hello Newsgroup
>
> i have installed MATLAB on Ubuntu Linux.
> But there is a problem with the installation.
> When i type in matlab from the command prompt, MATLAB starts up & command window appears.
> But the Standard Menu bar, Tool bar are NOT visible.
> WHen i open the Editor, Figure window, Array Editor etc, the Standard Menu bar, Tool bar in these windows also are NOT visible. But when i dock the Editor, Figure window, Array Editor etc into the main window, the Standard Menu bar, Tool bar in these windows will become visible.
>
> I don't understand what's happening.
> Does anyone know what's going on & can suggest some solutions.
> Please any help will be appreciated.
>
> Thanks in advance
> AMogh Rajanna

It semms that this issue is due to a bug in a video driver in Ubuntu.
Reading this solution may help you:
Why do I have issues with my MATLAB desktop on Ubuntu 9.04?
http://www.mathworks.com/support/solutions/en/data/1-A458TE/?solution=1-A458TE

Subject: Problem with Matlab on Ubuntu Linux

From: Amogh Rajanna

Date: 24 Aug, 2009 01:02:03

Message: 3 of 12

Thanks for the reply. But the solution suggested in
http://www.mathworks.com/support/solutions/en/data/1-A458TE/?solution=1-A458TE

does not help. I still have problems with Matlab desktop, Editor window, figure window, array editor window.
The menu bars, toolbars etc on any of these windows are not visible, BUT if i click on the menu bar items, toolbar items, then relevant text/dialog box seems to pop-up.

But if i dock any of these windows, they become visible. If i undock them again, they become invisible .
I don't understand how this works.
I am using 32-bit Ubuntu 9.04
Hope somebody has an idea on how to resolve this issue.

Thanks in advance

"Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h6j040$eho$1@fred.mathworks.com>...
> "Amogh Rajanna" <raja0088@umn.edu> wrote in message <h6iqbn$e66$1@fred.mathworks.com>...
> > Hello Newsgroup
> >
> > i have installed MATLAB on Ubuntu Linux.
> > But there is a problem with the installation.
> > When i type in matlab from the command prompt, MATLAB starts up & command window appears.
> > But the Standard Menu bar, Tool bar are NOT visible.
> > WHen i open the Editor, Figure window, Array Editor etc, the Standard Menu bar, Tool bar in these windows also are NOT visible. But when i dock the Editor, Figure window, Array Editor etc into the main window, the Standard Menu bar, Tool bar in these windows will become visible.
> >
> > I don't understand what's happening.
> > Does anyone know what's going on & can suggest some solutions.
> > Please any help will be appreciated.
> >
> > Thanks in advance
> > AMogh Rajanna
>
> It semms that this issue is due to a bug in a video driver in Ubuntu.
> Reading this solution may help you:
> Why do I have issues with my MATLAB desktop on Ubuntu 9.04?
> http://www.mathworks.com/support/solutions/en/data/1-A458TE/?solution=1-A458TE

Subject: Problem with Matlab on Ubuntu Linux

From: Jonathan Rossel

Date: 31 Aug, 2009 13:50:17

Message: 4 of 12

I had similar issues with GUIs and just had to deactivate visual effects on windows to get it to work properly. More precisely:

Working on Matlab's GUIs might be problematic under Ubuntu (overlapping text boxes, black boxes everywhere, etc). If this is the case, deactivate any effect on windows: System -> Preferences -> Appearance -> Visual effects -> "None".

Subject: Problem with Matlab on Ubuntu Linux

From: Avinash Parnandi

Date: 7 Sep, 2009 17:17:20

Message: 5 of 12

"Amogh Rajanna" <raja0088@umn.edu> wrote in message <h6iqbn$e66$1@fred.mathworks.com>...
> Hello Newsgroup
>
> i have installed MATLAB on Ubuntu Linux.
> But there is a problem with the installation.
> When i type in matlab from the command prompt, MATLAB starts up & command window appears.
> But the Standard Menu bar, Tool bar are NOT visible.
> WHen i open the Editor, Figure window, Array Editor etc, the Standard Menu bar, Tool bar in these windows also are NOT visible. But when i dock the Editor, Figure window, Array Editor etc into the main window, the Standard Menu bar, Tool bar in these windows will become visible.
>
> I don't understand what's happening.
> Does anyone know what's going on & can suggest some solutions.
> Please any help will be appreciated.
>
> Thanks in advance
> AMogh Rajanna


Try this:
for getting the toolbars
1. Open the executable Matlab script, ~/matlab/bin/matlab in gedit. 2. Copy and paste "export AWT_TOOLKIT=MToolkit" into the first line of the file.
3. Save the file. Close the terminal and restart.

Avinash Parnandi
http://robotics.usc.edu/~parnandi/

Subject: Problem with Matlab on Ubuntu Linux

From: Avinash Parnandi

Date: 7 Sep, 2009 17:17:21

Message: 6 of 12

"Amogh Rajanna" <raja0088@umn.edu> wrote in message <h6iqbn$e66$1@fred.mathworks.com>...
> Hello Newsgroup
>
> i have installed MATLAB on Ubuntu Linux.
> But there is a problem with the installation.
> When i type in matlab from the command prompt, MATLAB starts up & command window appears.
> But the Standard Menu bar, Tool bar are NOT visible.
> WHen i open the Editor, Figure window, Array Editor etc, the Standard Menu bar, Tool bar in these windows also are NOT visible. But when i dock the Editor, Figure window, Array Editor etc into the main window, the Standard Menu bar, Tool bar in these windows will become visible.
>
> I don't understand what's happening.
> Does anyone know what's going on & can suggest some solutions.
> Please any help will be appreciated.
>
> Thanks in advance
> AMogh Rajanna


Try this:
for getting the toolbars
1. Open the executable Matlab script, ~/matlab/bin/matlab in gedit. 2. Copy and paste "export AWT_TOOLKIT=MToolkit" into the first line of the file.
3. Save the file. Close the terminal and restart.

Avinash Parnandi
http://robotics.usc.edu/~parnandi/

Subject: Problem with Matlab on Ubuntu Linux

From: Stefan

Date: 30 Oct, 2009 22:27:01

Message: 7 of 12

this worked perfectly for my wih Matlab R2007a under Ubuntu 9.10

Best
Stefan

Subject: Problem with Matlab on Ubuntu Linux

From: Simon Waid

Date: 27 May, 2010 17:37:20

Message: 8 of 12

"Stefan " <qw@qwer.de> wrote in message <hcfp7l$hct$1@fred.mathworks.com>...
> this worked perfectly for my wih Matlab R2007a under Ubuntu 9.10
>
> Best
> Stefan

The trick doesn't work anymore under 10.04. I get:
[code]
Failed to start the Desktop: Failure loading desktop class
[/code]
Any other Ideas?
Best regards,
Simon

Subject: Problem with Matlab on Ubuntu Linux

From: Karl

Date: 15 Jun, 2010 00:08:04

Message: 9 of 12

@Simon:
I got this to work on Ubuntu 10.04 by downloading the latest version of the Java JDK from SUN, then setting the MATLAB_JAVA environment variable to point to that directory.


"Simon Waid" <simon_waid@gmx.net> wrote in message <htmakf$kdu$1@fred.mathworks.com>...
> "Stefan " <qw@qwer.de> wrote in message <hcfp7l$hct$1@fred.mathworks.com>...
> > this worked perfectly for my wih Matlab R2007a under Ubuntu 9.10
> >
> > Best
> > Stefan
>
> The trick doesn't work anymore under 10.04. I get:
> [code]
> Failed to start the Desktop: Failure loading desktop class
> [/code]
> Any other Ideas?
> Best regards,
> Simon

Subject: Problem with Matlab on Ubuntu Linux

From: Golam Kibria Chowdhury

Date: 2 Jul, 2010 02:30:25

Message: 10 of 12

I have installed Java SDK from Sun. How to find the installation path in Ubuntu so that I can point to the MATLAB_JAVA variable in /bin/matlab file? Thanks.

Subject: Problem with Matlab on Ubuntu Linux

From: Golam Kibria Chowdhury

Date: 2 Jul, 2010 02:31:05

Message: 11 of 12

I have installed Java SDK from Sun. How to find the installation path in Ubuntu so that I can point to the MATLAB_JAVA variable in /bin/matlab file? Thanks.

Subject: Problem with Matlab on Ubuntu Linux

From: Andrés

Date: 1 Jul, 2014 19:26:11

Message: 12 of 12

"Golam Kibria Chowdhury" <kibria100@yahoo.com> wrote in message <i0jj19$osq$1@fred.mathworks.com>...
> I have installed Java SDK from Sun. How to find the installation path in Ubuntu so that I can point to the MATLAB_JAVA variable in /bin/matlab file? Thanks.


Hi, sorry to reopen this thread, but I'm having that same problem and need your help. When I run matlab, the GUI window appears but with no buttons or text. I installed the latest java version from the sun website and set the MATLAB_JAVA variable to the jre path. The problem remains the same and when I run "matlab -nodesktop" and then run "desktop" it shows the same blank GUI and no message on the command line. Any idea on how to solve this?

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us