Java issue after switching to a new laptop

9 Ansichten (letzte 30 Tage)
Stella
Stella am 27 Jul. 2023
Kommentiert: Stella am 14 Aug. 2023
I got a new M2 MacBook Pro and migrated everything, including MATLAB 2023a from an older MacBook Pro (Intel chip). I started to get this error, but I was not able to fix it.
java.lang.reflect.InvocationTargetException
at sun.lwawt.macosx.LWCToolkit.invokeAndWait(LWCToolkit.java:649)
at sun.lwawt.macosx.CInputMethod.firstRectForCharacterRange(CInputMethod.java:713)
Caused by: java.lang.NullPointerException
at sun.lwawt.macosx.CInputMethod$6.run(CInputMethod.java:734)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Akzeptierte Antwort

Himanshu
Himanshu am 10 Aug. 2023
Bearbeitet: Himanshu am 10 Aug. 2023
  • A Java runtime is required to be installed on your Mac for you to be able use MATLAB natively on Apple silicon.
  • For detailed documentation regarding how to install and run MATLAB natively on Apple Silicon--including system requirements and supported products--please refer to this resource page.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by