running line on mac gives java error

8 views (last 30 days)
huseyin kuyuk
huseyin kuyuk on 3 Feb 2016
When I run a line in editor on mac, gives java error below.
What should I do?
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock( at java.awt.Component.getLocationOnScreen( at sun.lwawt.macosx.CAccessibility$ at sun.lwawt.macosx.CAccessibility$ at sun.lwawt.macosx.LWCToolkit$>> k=1
at java.awt.event.InvocationEvent.dispatch( at java.awt.EventQueue.dispatchEventImpl( at java.awt.EventQueue.access$300( at java.awt.EventQueue$ at java.awt.EventQueue$ at Method) at$1.doIntersectionPrivilege( at$1.doIntersectionPrivilege( at java.awt.EventQueue$ at java.awt.EventQueue$ at Method) at$1.doIntersectionPrivilege( at java.awt.EventQueue.dispatchEvent( at java.awt.EventDispatchThread.pumpOneEventForFilters( at java.awt.EventDispatchThread.pumpEventsForFilter( at java.awt.EventDispatchThread.pumpEventsForHierarchy( at java.awt.EventDispatchThread.pumpEvents( at java.awt.EventDispatchThread.pumpEvents( at

Answers (1)

Subin Kuttappan Stellal Mary
Are you using MAC OS 10.7x (Lion)?
If yes, this issue might be caused due to some third party extensions installed on the system.
Cinch and Flexiglass have particularly been known to have caused this issue. If the issue persists after disabling these extensions, there might be other third party extensions too which are causing this issue.
In order to identify which of the extensions is causing the issue, start by first restarting system without any extensions enabled (to see if the problem is gone) then re-enable each extensions until the offending one has been identified. Some extensions may require being removed; disabling them doesn't stop the bad behaviour. To narrow down the search, start with any extensions that change seeing, hearing, keyboard or mouse/trackpad behavior, or those who require a feature of Universal Access to be enabled.
Once the extension causing this issue is isolated, one can disable it to avoid the issue.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by