UnsupportedOperationException: The first invocation of this method cannot be on the MATLAB thread.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jose Gutierrez de la Concha
am 8 Mär. 2018
Beantwortet: John Harris
am 11 Okt. 2018
"C:\Program Files\MATLAB\R2017b\bin\matlab" -nodesktop -nosplash -wait -log -minimize -r "matlab.addons.toolbox.installedToolboxes();"
When I execute the above command I get this exception:
Error using matlab.addons.toolbox.installedToolboxes
Java exception occurred:
java.lang.UnsupportedOperationException: The first invocation of this method cannot be on the MATLAB thread.
at com.mathworks.addons_common.util.FolderNameUtils.getFirstFolderInUserPath(FolderNameUtils.java:57)
at com.mathworks.addons_common.util.FolderNameUtils.getUsersHomeDirectory(FolderNameUtils.java:35)
at com.mathworks.addons_common.util.settings.InstallationFolderUtils.getDefaultInstallationFolder(InstallationFolderUtils.java:77)
at com.mathworks.addons_common.util.settings.InstallationFolderUtils.getInstallationFolderForMatlabDesktop(InstallationFolderUtils.java:42)
at com.mathworks.addons_common.util.settings.InstallationFolderUtils.getInstallationFolder(InstallationFolderUtils.java:36)
at com.mathworks.toolboxmanagement.CustomToolboxManager.getInstalled(CustomToolboxManager.java:81)
This seems to only happen with 2017b, I have tested the same with 2016a 2016b and 2017a without problems
1 Kommentar
Akzeptierte Antwort
John Harris
am 11 Okt. 2018
Not sure if this will fix it, but check out this bug and install the latest matlab Update if you haven't
0 Kommentare
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!