I can't open and uninstall due to the error, how to resolve it?

1 view (last 30 days)
java.io.FileNotFoundException: C:\Program Files\MATLAB\R2022a\toolbox\local\classpath\authenticationws_client.jcp (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileReader.(FileReader.java:72)
at com.mathworks.instutil.FileIO.readLinesFromFile(FileIO.java:180)
at com.mathworks.install_impl.command.GenerateClasspathCommand.createClassPathTxt(Unknown Source)
at com.mathworks.install_impl.command.GenerateClasspathCommand.undo(Unknown Source)
at com.mathworks.install_impl.PreProductInstaller.uninstallProducts(Unknown Source)
at com.mathworks.install_impl.InstallerImpl.uninstallProducts(Unknown Source)
at com.mathworks.install_impl.InstallerImpl.uninstall(Unknown Source)
at com.mathworks.installwizard.model.UninstallTask.execute(UninstallTask.java:38)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.install_task.AbstractInstallTask.call(AbstractInstallTask.java:52)
at com.mathworks.install_task.AbstractInstallTask.call(AbstractInstallTask.java:18)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
(Jul 20, 2022 14:50:34) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s).

Answers (2)

Jan
Jan on 20 Jul 2022
The message suggest to re-install Matlab. So do this: install it over the existing version.
  2 Comments
Tisha Sikder
Tisha Sikder on 20 Jul 2022
For this, I need to uninstall first ,right? I cannot uninstall the existing one for the same reason
Jan
Jan on 21 Jul 2022
Edited: Jan on 21 Jul 2022
@Tisha Sikder: No, you do not need to uninstall. I mean "re-install": Install Matlab again.

Sign in to comment.


Image Analyst
Image Analyst on 20 Jul 2022
Call them on the phone (before the weekend!). Tech support is free for installation for everyone, even students. Yes, talk to a real live, friendly person who will talk you through the entire process.
Do what it says in the FAQ:

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!