Thread Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Adam Attarian

Date: 2 Sep, 2009 03:33:11

Message: 1 of 15

Hey Guys,

I'm operating on a relatively fresh installation of Snow Leopard and
just put Matlab 2009a on it. When I load up Matlab, I get the lovely
java error:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at apple.awt.CGraphicsEnvironment.resetDisplays
(CGraphicsEnvironment.java:100)
at apple.awt.CGraphicsEnvironment.displayChanged
(CGraphicsEnvironment.java:50)
at apple.awt.CToolkit$4.run(CToolkit.java:1310)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java.awt.EventDispatchThread.pumpOneEventForFilters
(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
>>

Any suggestions on getting over this? Something to do w/ my java.opts
perhaps?

Thanks folks,
Adam

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Shonn McNeill

Date: 3 Sep, 2009 14:49:02

Message: 2 of 15

I just got the same error running OS X 10.6 and Matlab 2009a.

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:100)
at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:50)
at apple.awt.CToolkit$4.run(CToolkit.java:1310)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  Student License -- for use in conjunction with courses offered at a
  degree-granting institution. Professional and commercial use prohibited.

EDU>>

Sincerely, Kevin


Adam Attarian <adam.attarian@gmail.com> wrote in message <df199056-8cd1-48b1-ae3d-d502fb95d956@z28g2000vbl.googlegroups.com>...
> Hey Guys,
>
> I'm operating on a relatively fresh installation of Snow Leopard and
> just put Matlab 2009a on it. When I load up Matlab, I get the lovely
> java error:
>
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> at apple.awt.CGraphicsEnvironment.resetDisplays
> (CGraphicsEnvironment.java:100)
> at apple.awt.CGraphicsEnvironment.displayChanged
> (CGraphicsEnvironment.java:50)
> at apple.awt.CToolkit$4.run(CToolkit.java:1310)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
> at java.awt.EventDispatchThread.pumpOneEventForFilters
> (EventDispatchThread.java:296)
> at java.awt.EventDispatchThread.pumpEventsForFilter
> (EventDispatchThread.java:211)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy
> (EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
> 196)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
> 188)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
> >>
>
> Any suggestions on getting over this? Something to do w/ my java.opts
> perhaps?
>
> Thanks folks,
> Adam

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Xiuyu Gao

Date: 9 Sep, 2009 20:08:21

Message: 3 of 15

Similar error here but I am running a MATLAB R2008a. Is that a bug from snow leopard?

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Michael Woodworth

Date: 14 Sep, 2009 19:43:01

Message: 4 of 15

I get the same error on regular old leopard

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Jesse

Date: 17 Sep, 2009 18:33:19

Message: 5 of 15

I am getting the same thing also...2009a and Snow Leopard.

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Arnaud

Date: 1 Oct, 2009 19:05:19

Message: 6 of 15

same here

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Nathaniel

Date: 5 Oct, 2009 05:13:02

Message: 7 of 15

Same problem here ..

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Tim

Date: 9 Oct, 2009 15:33:04

Message: 8 of 15

Same problem as mentioned before across 200+ network licensed iMacs running 10.6.1

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Harold

Date: 23 Oct, 2009 06:42:04

Message: 9 of 15

same issue... running snow leopard 10.6

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Phillip

Date: 23 Oct, 2009 07:53:04

Message: 10 of 15

Hi everyone

I just came across this problem too. I used Java Preferences to re-order the preferred versions of Java for applications (bottom half of first tab) to prefer the 32-bit over the 64-bit and was able to activate with no problems after that.

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: John Smith

Date: 23 Oct, 2009 08:57:05

Message: 11 of 15

"Phillip " <phillipNOSPAM@usyd.edu.au> wrote in message <hbrncv$s96$1@fred.mathworks.com>...
> Hi everyone
>
> I just came across this problem too. I used Java Preferences to re-order the preferred > versions of Java for applications (bottom half of first tab) to prefer the 32-bit over the > 64-bit and was able to activate with no problems after that.

Did not change anything for me but thanks for the advise.

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Eric Homer

Date: 6 Nov, 2009 05:04:02

Message: 12 of 15

"Phillip " <phillipNOSPAM@usyd.edu.au> wrote in message <hbrncv$s96$1@fred.mathworks.com>...
> Hi everyone
>
> I just came across this problem too. I used Java Preferences to re-order the preferred versions of Java for applications (bottom half of first tab) to prefer the 32-bit over the 64-bit and was able to activate with no problems after that.

This worked great for me.

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Peter

Date: 8 Nov, 2009 19:41:01

Message: 13 of 15

I installed it OK (after the Java switch), but once I start matlab I get the following
in the Command Window...is this something to worry about ?

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:100)
at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:50)
at apple.awt.CToolkit$4.run(CToolkit.java:1310)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
>>

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box java

From: Arnaud

Date: 8 Nov, 2009 20:24:01

Message: 14 of 15

> I just came across this problem too. I used Java Preferences to re-order the preferred versions of Java for applications (bottom half of first tab) to prefer the 32-bit over the 64-bit and was able to activate with no problems after that.

worked perfectly for me - thanks a lot!

Subject: Fresh Matlab 2009a install on Snow Leopard -- out of the box

From: Brian Arnold

Date: 10 Nov, 2009 13:25:56

Message: 15 of 15

Hi Peter,

This is a known issue with Apple's Java and is reported on our web site.
  It is not something to worry about, unless it keeps happening while
running MATLAB. If that happens, quit and restart MATLAB. We expect
that Apple will have a Java update available soon that resolves this issue.

- Brian

Peter wrote:
> I installed it OK (after the Java switch), but once I start matlab I get the following
> in the Command Window...is this something to worry about ?
>
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:100)
> at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:50)
> at apple.awt.CToolkit$4.run(CToolkit.java:1310)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
2009a Peter 8 Nov, 2009 14:44:04
snow leopard Peter 8 Nov, 2009 14:44:04
snow leopard Matt 14 Oct, 2009 10:41:07
snow leopard Sprinceana 9 Sep, 2009 17:53:52
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com