switchng folder to desktop in catalina 10.15

5 次查看(过去 30 天)
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 个评论
竞舸 何
竞舸 何 2021-5-7
but the video shows how to fix it on macos. My system is windows. What should i do?

请先登录,再进行评论。

采纳的回答

Felix Huang
Felix Huang 2019-12-3
编辑:Felix Huang 2019-12-4
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 个评论
Joan Saldana
Joan Saldana 2020-12-25
Thank you very much Felix! I had the same problem (macOS Big Sur and MATLAB R2020b) and this fixed the problem.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by