MATLAB R2022b has java problem, can not load or run scipts, and the GUI is bugged

Dear Community,
this is my first ever post here, since no one in this world appears to have encountered this error.
Problems:
1) I start Matlab R2022b (after a fresh install) and when I create and run a new script (with or without content) the following errors appear:
Exception in thread "Thread-590": java.lang.NullPointerException
at java.io.File.<init>(File.java:277)
at com.mathworks.fileutils.MatlabPath.trimToMcosPath(MatlabPath.java:873)
at com.mathworks.fileutils.MatlabPath.getQualifiedFunctionOrMethodName(MatlabPath.java:924)
at com.mathworks.mlwidgets.configeditor.ConfigurationUtils.generateDefaultMatlabExpression(ConfigurationUtils.java:107)
at com.mathworks.mlwidgets.configeditor.data.RunConfiguration$1.create(RunConfiguration.java:32)
at com.mathworks.mlwidgets.configeditor.data.RunConfiguration$1.create(RunConfiguration.java:25)
at com.mathworks.mlwidgets.configeditor.data.ConfigurationManager.getDefaultConfigurationForFile(ConfigurationManager.java:301)
at com.mathworks.mlwidgets.configeditor.data.ConfigurationManager.getMostRecentlyActionedConfigurationForFileOrDefault(ConfigurationManager.java:244)
at com.mathworks.mlwidgets.configeditor.data.ConfigurationManager.getMostRecentlyActionedConfigurationForFileOrDefault(ConfigurationManager.java:215)
at com.mathworks.mde.editor.plugins.matlab.EditorSaveRunAndPublishUtils.saveFileAndDoConfigurationAction(EditorSaveRunAndPublishUtils.java:106)
at com.mathworks.mde.editor.plugins.matlab.MatlabPluginUtils.executeDefaultConfiguration(MatlabPluginUtils.java:98)
at com.mathworks.mde.editor.plugins.editordataservice.LegacyJavaExecutionFeature$1$1.run(LegacyJavaExecutionFeature.java:52)
at java.lang.Thread.run(Thread.java:748)
2) After this error, the GUI for the tabs "Editor", "Publish" and "View" are bugged:
- all symbols are gone (e.g. the green symbol for "Run")
- all button captions say "disposed"
- the layout of buttons is correct
3) I can not open old scripts at all. My old scripts are written with R2020b.
Things that didn't solve the problems:
1) Re-installing Matlab R2022b
Things that do work:
1) The console works. I can enter calculations, variables and so on.
2) I can use the folder brower, select scripts and the Changelog (bottom left window) but can not run them.
Background:
I want to use the newest version of Matlab for its python functionality (and more) since Matlab itself is very slow at data acquisition.
System:
Windows 11 Pro
Please let me know if you have any ideas on solving this issue.
Best regards,
Felix

2 commentaires

A fresh install should start without errors. You are likely entitled to installation support from Mathworks, but you will need to contact support directly.
Okay. I will contact them. Thank you!

Connectez-vous pour commenter.

 Réponse acceptée

SOLUTION:
I ran the script from a server, which had an underscore "_" in the server name.
This lead to matlab R2022b not finding the files correctly.
To fix this, either change the server name to letters only or map the drive to a letter using this guide.
Thanks to Rani Kang from the Matlab support team who found this solution.

Plus de réponses (0)

Catégories

Produits

Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by