MATLAB R2022b has java problem, can not load or run scipts, and the GUI is bugged
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Felix Fischer
am 14 Okt. 2022
Beantwortet: Felix Fischer
am 7 Nov. 2022
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 Kommentare
Rik
am 15 Okt. 2022
A fresh install should start without errors. You are likely entitled to installation support from Mathworks, but you will need to contact support directly.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!