running line on mac gives java error
17 views (last 30 days)
Show older comments
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(Component.java:2048) at java.awt.Component.getLocationOnScreen(Component.java:2022) at sun.lwawt.macosx.CAccessibility$22.call(CAccessibility.java:390) at sun.lwawt.macosx.CAccessibility$22.call(CAccessibility.java:388) at sun.lwawt.macosx.LWCToolkit$CallableWrapper.run(LWCToolkit.java:521)>> k=1
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738) at java.awt.EventQueue.access$300(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:699) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:713) at java.awt.EventQueue$4.run(EventQueue.java:711) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:710) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
0 Comments
Answers (1)
Subin Kuttappan Stellal Mary
on 9 Feb 2016
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.
0 Comments
See Also
Categories
Find more on Call Java from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!