switchng folder to desktop in catalina 10.15

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 Comments

I have exactly the same issue. It happened when switvhing folders as well. Now I don't know how to fix it either.
Hi! I'm the one who asked the question, but I kept looking and found this on YouTube and it worked perfectly. Hope this helps you too! https://www.youtube.com/watch?v=h7gEMcfeLB8
It works! I have trying to fix it for a week. But with this video it is done in just 5 sec!
Thanks alot.
Thank you, this video helped me a lot !!
thank you very much it is works
but the video shows how to fix it on macos. My system is windows. What should i do?

Sign in to comment.

 Accepted Answer

Felix Huang
Felix Huang on 3 Dec 2019
Edited: Felix Huang on 4 Dec 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 Comments

I had the same problem. Thanks for the fix! You saved my day (night)!
Thanks! And LOL for the apple pies.
that worked! thanks man
Brilliant! I could not even open Matlab in the desktop but had to start it via the command line to get this error:
java.lang.UnsatisfiedLinkError: /Applications/MATLAB_R2020a.app/bin/maci64/libnativelogin.dylib: dlopen(/Applications/MATLAB_R2020a.app/bin/maci64/libnativelogin.dylib, 1): no suitable image found.
After giving full permission to Matlab, this error miraculously disappears.
thanks a lot !This problem has bothered me all afternoon!
Thank you so much! It really works!
Thank you so much - this fixed it!
Works perfectly, thank you so much!
Thank you very much Felix! I had the same problem (macOS Big Sur and MATLAB R2020b) and this fixed the problem.
Merci beaucoup! Just like Joan

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2019a

Community Treasure Hunt

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

Start Hunting!