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:
matlab and Java

Subject: matlab and Java

From: Gabriel

Date: 10 Apr, 2009 02:35:02

Message: 1 of 9

My matlab stopped working about 3 days ago. When I double click on the matlab icon, it opens a window full of java errors. I click ok on the window and everything closes. I have no access to matlab and I really need it since projects for classes are due very soon as the semester comes to an end. Does anyone have an idea what could be happening? I reinstalled matlab and have the latest update to java 6-13.Thanks

Subject: matlab and Java

From: Trance

Date: 10 Apr, 2009 02:50:38

Message: 2 of 9

On Apr 9, 7:35=A0pm, "Gabriel" <gabriel.castan...@us.army.mil> wrote:
> My matlab stopped working about 3 days ago. When I double click on the ma=
tlab icon, it opens a window full of java errors. I click ok on the window =
and everything closes. I have no access to matlab and I really need it sinc=
e projects for classes are due very soon as the semester comes to an end. D=
oes anyone have an idea what could be happening? I reinstalled matlab and h=
ave the latest update to java 6-13.Thanks

Gabriel,

Try to uninstall Java. Then install matlab and see if it works. I
think matlab has its own java runtime. Maybe something in the latest
Java version you download from Sun has conflicts...happened to me with
ImageJ.

HTH.

Subject: matlab and Java

From: Gabriel

Date: 10 Apr, 2009 03:36:01

Message: 3 of 9

Thanks Trance, unfortunately it did not work. I have installed, uninstalled, reinstalled, to no avail. thanks again

Trance <trancemissionxxi@gmail.com> wrote in message <87c86e9c-0d6a-454d-8db5-d746480c4316@s20g2000yqh.googlegroups.com>...
> On Apr 9, 7:35=A0pm, "Gabriel" <gabriel.castan...@us.army.mil> wrote:
> > My matlab stopped working about 3 days ago. When I double click on the ma=
> tlab icon, it opens a window full of java errors. I click ok on the window =
> and everything closes. I have no access to matlab and I really need it sinc=
> e projects for classes are due very soon as the semester comes to an end. D=
> oes anyone have an idea what could be happening? I reinstalled matlab and h=
> ave the latest update to java 6-13.Thanks
>
> Gabriel,
>
> Try to uninstall Java. Then install matlab and see if it works. I
> think matlab has its own java runtime. Maybe something in the latest
> Java version you download from Sun has conflicts...happened to me with
> ImageJ.
>
> HTH.

Subject: matlab and Java

From: Nasser Abbasi

Date: 10 Apr, 2009 04:09:15

Message: 4 of 9


"Gabriel" <gabriel.castaneda@us.army.mil> wrote in message
news:grmer1$97o$1@fred.mathworks.com...
> Thanks Trance, unfortunately it did not work. I have installed,
> uninstalled, reinstalled, to no avail. thanks again
>


What are the java errors? If you post them, may be someone can help better.

Good luck,

--Nasser

Subject: matlab and Java

From: Gabriel

Date: 10 Apr, 2009 04:22:01

Message: 5 of 9

errors:1840
765
135
298
3856
3672
3943
42
329
and finally
unknown source

"Nasser Abbasi" <nma@12000.org> wrote in message <SDzDl.18547$as4.6745@nlpi069.nbdc.sbc.com>...
>
> "Gabriel" <gabriel.castaneda@us.army.mil> wrote in message
> news:grmer1$97o$1@fred.mathworks.com...
> > Thanks Trance, unfortunately it did not work. I have installed,
> > uninstalled, reinstalled, to no avail. thanks again
> >
>
>
> What are the java errors? If you post them, may be someone can help better.
>
> Good luck,
>
> --Nasser
>

Subject: matlab and Java

From: Nasser Abbasi

Date: 10 Apr, 2009 04:33:29

Message: 6 of 9


"Gabriel" <gabriel.castaneda@us.army.mil> wrote in message
news:grmhh9$ft4$1@fred.mathworks.com...
> errors:1840
> 765
> 135
> 298
> 3856
> 3672
> 3943
> 42
> 329
> and finally
> unknown source
>

humm... I was expecting actual text error messages. Any way, may be someone
else could make a sense of the above.

I asusme you are using windows? Look at the system events, look for
application errors, system errors, see if somethings shows up there.

One thing you could always try meanwhile, which might couple of hrs of your
time.

Get VMware workstation software (free version), install it on your PC,
install Windows (I assume you have the disks for that), and install Matlab
in the VM. See if that works. If it does, then you have some configuration
problem in your system, may be Java, If Matlab fails to starts in the VM
machine, then your own Matlab is messed up somehow.

At least if it works in the VM, you can still use Matlab until you find the
problem.

--Nasser
--Nasser

Subject: matlab and Java

From: Gabriel

Date: 10 Apr, 2009 05:06:01

Message: 7 of 9

here are the actual errors
com.mathworks.mwswing.desk.DTNestingContainer$TreeState.findSubTree(DTNestingContainer.java:1840)
com.mathworks.mwswing.desk.DTNestingContainer.getPreviousLocation(DTNestingContainer.java:765)
com.mathworks.mwswing.desk.DTNestingContainer.add(DTNestingContainer.java:135)
com.mathworks.mwswing.desk.DTNMultipleClientFrame.addClient(DTMultipleClientFrame.java:298)
com.mathworks.mwswing.desk.Deskktop.setClientShowing(Desktop.java:3856)
com.mathworks.mwswing.desk.Deskktop.setClientShowing(Desktop.java:3672)
com.mathworks.mwswing.desk.Deskktop.showClientWithoutActivatingFrame(Desktop.java:3943)
com.mathworks.mde.desk.MLDesktop.access$300(MLDesktop.java:42)
com.mathworks.mde.desk.MLDesktop$2.run(MLDesktop.java:329)
java.awt.event.InvocationEvent.dispatchEvent(Unknown Source)
java.awt.Event.Queque.dispatchEvent(Unknown Source)
java.awt.Event.DispatchThread.pumpOneEventForHierarchy(Unknown Source)
java.awt.Event.DispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.Event.DispatchThread.pumpEvents(Unknown Source)
java.awt.Event.DispatchThread.pumpEvents(Unknown Source)
java.awt.Event.DispatchThread.run(Unknown Source)
Thanks again

"Nasser Abbasi" <nma@12000.org> wrote in message <z_zDl.18552$as4.15368@nlpi069.nbdc.sbc.com>...
>
> "Gabriel" <gabriel.castaneda@us.army.mil> wrote in message
> news:grmhh9$ft4$1@fred.mathworks.com...
> > errors:1840
> > 765
> > 135
> > 298
> > 3856
> > 3672
> > 3943
> > 42
> > 329
> > and finally
> > unknown source
> >
>
> humm... I was expecting actual text error messages. Any way, may be someone
> else could make a sense of the above.
>
> I asusme you are using windows? Look at the system events, look for
> application errors, system errors, see if somethings shows up there.
>
> One thing you could always try meanwhile, which might couple of hrs of your
> time.
>
> Get VMware workstation software (free version), install it on your PC,
> install Windows (I assume you have the disks for that), and install Matlab
> in the VM. See if that works. If it does, then you have some configuration
> problem in your system, may be Java, If Matlab fails to starts in the VM
> machine, then your own Matlab is messed up somehow.
>
> At least if it works in the VM, you can still use Matlab until you find the
> problem.
>
> --Nasser
> --Nasser
>

Subject: matlab and Java

From: Trance

Date: 10 Apr, 2009 05:12:46

Message: 8 of 9

Gabriel,

Matlab has a user specific folder in

Documents and Settings\YOURUSERNAME\Application Data\MathWorks\MATLAB\

Did you delete that folder after uninstalling? Also, did you delete
the Matlab folder in Program Files after uninstalling?


Easiest way (no need to uninstall matlab, delete folders and
reinstall) is to create another user on your machine and see if matlab
that you currently have installed works for that user.

Subject: matlab and Java

From: Nasser Abbasi

Date: 10 Apr, 2009 05:17:33

Message: 9 of 9


"Gabriel" <gabriel.castaneda@us.army.mil> wrote in message
news:grmk3p$5v1$1@fred.mathworks.com...
> here are the actual errors
> com.mathworks.mwswing.desk.DTNestingContainer$TreeState.findSubTree(DTNestingContainer.java:1840)
> com.mathworks.mwswing.desk.DTNestingContainer.getPreviousLocation(DTNestingContainer.java:765)
> com.mathworks.mwswing.desk.DTNestingContainer.add(DTNestingContainer.java:135)
> com.mathworks.mwswing.desk.DTNMultipleClientFrame.addClient(DTMultipleClientFrame.java:298)
> com.mathworks.mwswing.desk.Deskktop.setClientShowing(Desktop.java:3856)
> com.mathworks.mwswing.desk.Deskktop.setClientShowing(Desktop.java:3672)
> com.mathworks.mwswing.desk.Deskktop.showClientWithoutActivatingFrame(Desktop.java:3943)
> com.mathworks.mde.desk.MLDesktop.access$300(MLDesktop.java:42)
> com.mathworks.mde.desk.MLDesktop$2.run(MLDesktop.java:329)
> java.awt.event.InvocationEvent.dispatchEvent(Unknown Source)
> java.awt.Event.Queque.dispatchEvent(Unknown Source)
> java.awt.Event.DispatchThread.pumpOneEventForHierarchy(Unknown Source)
> java.awt.Event.DispatchThread.pumpEventsForHierarchy(Unknown Source)
> java.awt.Event.DispatchThread.pumpEvents(Unknown Source)
> java.awt.Event.DispatchThread.pumpEvents(Unknown Source)
> java.awt.Event.DispatchThread.run(Unknown Source)
> Thanks again
>

Please do not top post.

Ok, these errors helps.

Searching for MLDesktop at mathworks, shows this known errors, and it sounds
like it could be yours

"Problem Description:
I receive one or more of the following errors when I attempt to start MATLAB
6.5 (R13) or later:
Failure Loading Desktop Class

Solution:
Generally this issue is due to a corrupt on incompatible Java Virtual
Machine (JVM). Some of our customers have found that installing an alternate
JVM fixes this problem. To get the latest JVM made by Sun Microsystems go
to:"

http://www.mathworks.com/support/solutions/data/1-1A2L7.html?solution=1-1A2L7

So, see if the recommended action will help you.

Good luck
--Nasser

Tags for this Thread

No tags are associated with 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