- Why will MATLAB not start up properly on my Linux machine? - MATLAB Answers - MATLAB Central (mathworks.com)
- Why is MATLAB unable to run the MATLABWindow application on Linux? - MATLAB Answers - MATLAB Central (mathworks.cn)
MATLAB R2022B starts but throws "Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException" on Manjaro Linux
84 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
i installed MATLAB R2022B on my Manjaro Linux (DISTRIB_RELEASE=21.3.7) with academic license.
I can use the build-in terminal using MATLAB-Syntax.
But trying to create or open MATLAB-Script throws following NullPointerExeption:
Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException
at com.mathworks.mde.desk.MLDesktop.updateTemplate(MLDesktop.java:3665)
at com.mathworks.mde.desk.MLDesktop.access$2000(MLDesktop.java:225)
at com.mathworks.mde.desk.MLDesktop$NewMFileAction.actionPerformed(MLDesktop.java:2853)
at com.mathworks.mwswing.ChildAction.actionPerformed(ChildAction.java:214)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at com.mathworks.toolstrip.plaf.RegularButtonUI$RegularToolstripButtonListener.mouseReleasedImpl(RegularButtonUI.java:364)
at com.mathworks.toolstrip.plaf.RegularButtonUI$RegularToolstripButtonListener.mouseReleased(RegularButtonUI.java:354)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at com.mathworks.mwswing.MJButton.processMouseEvent(MJButton.java:350)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
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)
I have installed proper JDK, glibc.
Thanks for the reply and have an awesome day!
Best Regards
Toni Sedlmeier
0 commentaires
Réponses (1)
Shreyas
le 6 Oct 2022
Hello Toni,
Manjaro Linux does not seem to be a supported Linux Distribution (Linux System Requirements - MATLAB & Simulink (mathworks.com)). There are many reasons why this exception would occur, many of them will have to do with libraries that may not be available on the Linux Distribution.
Try to set aside the libfreetype.so.6 in “<matlab_root/bin/glnxa64>” using the below commands:
cd <matlab_root>/bin/glnxa64/
mv libfreetype.so.6 libfreetype.so.6.old
I have attached a few links for a reference/workaround:
Thank You.
3 commentaires
Lorenzo Pagnini
le 4 Nov 2022
Thank you very much.
It has been very useful also for me.
Regards,
Lorenzo
Komali Bharath Narayana Reddy
le 15 Nov 2022
Modifié(e) : Komali Bharath Narayana Reddy
le 15 Nov 2022
It worked for me
Thank you for being so helpful.
Bharath
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!