필터 지우기
필터 지우기

Java issue after switching to a new laptop

조회 수: 23 (최근 30일)
Stella
Stella 2023년 7월 27일
댓글: Stella 2023년 8월 14일
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)

채택된 답변

Himanshu
Himanshu 2023년 8월 10일
편집: Himanshu 2023년 8월 10일
  • 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.
  댓글 수: 1
Stella
Stella 2023년 8월 14일
Thank you. The issue has benn resolved.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by