switchng folder to desktop in catalina 10.15

5 vues (au cours des 30 derniers jours)
Jim Gibson
Jim Gibson le 30 Oct 2019
Commenté : 竞舸 何 le 7 Mai 2021
Tried to switch the folder to Desktop and got this:
Exception in thread "ContributedToolsLoader": java.lang.NoClassDefFoundError: Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder
at java.nio.file.FileSystems.getDefault(FileSystems.java:176)
at java.io.File.toPath(File.java:2234)
at com.mathworks.resources_folder.ResourcesFolderUtils.getResourcesFolderName(ResourcesFolderUtils.java:31)
at com.mathworks.mde.desk.ContributedTools.constructToolSetFileName(ContributedTools.java:103)
at com.mathworks.mde.desk.ContributedTools.<init>(ContributedTools.java:65)
at com.mathworks.mde.desk.ContributedToolsLoader$3.run(ContributedToolsLoader.java:69)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "Startup Class Loader": java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.instutil.InstutilResourceKeys
at com.mathworks.mlwidgets.help.DocCenterRoot.initDocRelease(DocCenterRoot.java:44)
at com.mathworks.mlwidgets.help.DocCenterRoot.<clinit>(DocCenterRoot.java:26)
at com.mathworks.mlwidgets.help.HelpPrefs.<clinit>(HelpPrefs.java:49)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.mathworks.mlservices.MLHelpServices.getDocRoot(MLHelpServices.java:522)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getDocrootDirectory(ProductInfoUtils.java:698)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getAbsolutePath(ProductInfoUtils.java:685)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseFile(ProductInfoUtils.java:250)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseFiles(ProductInfoUtils.java:310)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.pathChanged(ProductInfoUtils.java:154)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.<init>(ProductInfoUtils.java:80)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getAllProductsInfo(ProductInfoUtils.java:887)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.<clinit>(ProductInfoUtils.java:66)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.mathworks.mde.desk.StartupClassLoader$LoadInfo.<init>(StartupClassLoader.java:112)
at com.mathworks.mde.desk.StartupClassLoader.createLoadInfos(StartupClassLoader.java:202)
at com.mathworks.mde.desk.StartupClassLoader.access$500(StartupClassLoader.java:25)
at com.mathworks.mde.desk.StartupClassLoader$2.run(StartupClassLoader.java:223)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "initialSetupAfterConnector Thread": java.lang.NoClassDefFoundError: Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder
at java.nio.file.FileSystems.getDefault(FileSystems.java:176)
at java.nio.file.Paths.get(Paths.java:138)
at com.mathworks.webservices.urlmanager.ReleaseEnvImpl.<clinit>(ReleaseEnvImpl.java:41)
at com.mathworks.webservices.urlmanager.UrlManagerImpl.<init>(UrlManagerImpl.java:39)
at com.mathworks.webservices.urlmanager.UrlManagerFactory.createUrlManager(UrlManagerFactory.java:13)
at com.mathworks.matlab_login.LoginWorkspace.getAuthenticationEndpoint(Unknown Source)
at com.mathworks.matlab_login.LoginWorkspace.access$000(Unknown Source)
at com.mathworks.matlab_login.LoginWorkspace$MyAbstractModule.configure(Unknown Source)
at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110)
at com.google.inject.util.Modules$OverrideModule.configure(Modules.java:177)
at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
at com.google.inject.Guice.createInjector(Guice.java:96)
at com.google.inject.Guice.createInjector(Guice.java:73)
at com.google.inject.Guice.createInjector(Guice.java:62)
at com.mathworks.matlab_login.LoginWorkspace.createInjector(Unknown Source)
at com.mathworks.matlab_login.LoginWorkspace.executeTask(Unknown Source)
at com.mathworks.matlab_login.MatlabLogin.checkUsersLoggedInState(Unknown Source)
at com.mathworks.matlab_login.MatlabLogin.isUserLoggedIn(Unknown Source)
at com.mathworks.matlab_login.MatlabLogin.isUserLoggedIn(Unknown Source)
at com.mathworks.matlab_login.MatlabLogin.isUserLoggedIn(Unknown Source)
at com.mathworks.mde.desk.LoginStatusIndicator.getLoginInfo(LoginStatusIndicator.java:445)
at com.mathworks.mde.desk.LoginStatusIndicator.access$000(LoginStatusIndicator.java:52)
at com.mathworks.mde.desk.LoginStatusIndicator$2.run(LoginStatusIndicator.java:162)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "C4U RetrieveDataThread": java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.webservices.urlmanager.ReleaseEnvImpl
at com.mathworks.webservices.urlmanager.UrlManagerImpl.<init>(UrlManagerImpl.java:39)
at com.mathworks.webservices.urlmanager.UrlManagerFactory.createUrlManager(UrlManagerFactory.java:13)
at com.mathworks.webintegration.checkforupdates.CheckForUpdatesDialogImpl$RetrieveDataThread.run(CheckForUpdatesDialogImpl.java:176)
Now Matlab doesn't work at all. How do I fix this?
  6 commentaires
Enas S.
Enas S. le 17 Fév 2021
thank you very much it is works
竞舸 何
竞舸 何 le 7 Mai 2021
but the video shows how to fix it on macos. My system is windows. What should i do?

Connectez-vous pour commenter.

Réponse acceptée

Felix Huang
Felix Huang le 3 Déc 2019
Modifié(e) : Felix Huang le 4 Déc 2019
I went to "security and privacy" and under "privacy" I selected "full disk access" and assigned that privilege to MATLAB. Strangely, my Apple News browser opened up when I re-opened MATLAB. Now it works. And now MATLAB is using my hard drive to bake apple pies I suppose.
  11 commentaires
Joan Saldana
Joan Saldana le 25 Déc 2020
Thank you very much Felix! I had the same problem (macOS Big Sur and MATLAB R2020b) and this fixed the problem.
Carsten Daldrup
Carsten Daldrup le 10 Jan 2021
Merci beaucoup! Just like Joan

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by