How can I uninstall matlab toolboxes?

4 views (last 30 days)
Giuseppe
Giuseppe on 27 May 2021
Commented: Giuseppe on 17 Oct 2022
Hi guys, I'm trying to uninstall the "Mapping toolbox" but I get the following error in the "product uninstaller" window:
" The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at C:\Users\peppe\AppData\Local\Temp\mathworks_peppe.log "
Here a part of text on the .log file:
(mag 27, 2021 23:44:28) # Today's Date:
(mag 27, 2021 23:44:28) Thu May 27 23:44:28 CEST 2021
(mag 27, 2021 23:44:28)
(mag 27, 2021 23:44:28) System Info
(mag 27, 2021 23:44:28) OS: Windows 10 10.0
(mag 27, 2021 23:44:28) Arch: amd64
(mag 27, 2021 23:44:28) Data Model: 64
(mag 27, 2021 23:44:28) Language: it
(mag 27, 2021 23:44:28) Java Vendor: Oracle Corporation
(mag 27, 2021 23:44:28) Java Home: C:\Program Files\MATLAB\R2021a\sys\java\jre\win64\jre
(mag 27, 2021 23:44:28) Java Version: 1.8.0_202
(mag 27, 2021 23:44:28) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(mag 27, 2021 23:44:28) Release Description: R2021a_Update_2
(mag 27, 2021 23:44:28) Java Class Path: C:\PROGRA~1\MATLAB\R2021a\java/config/trialsinstaller/pathlist.jar
(mag 27, 2021 23:44:28) User Name: peppe
(mag 27, 2021 23:44:28) Current Directory: C:\Users\peppe\OneDrive - Università di Napoli Federico II\DSV-Project_sottogruppo1
(mag 27, 2021 23:44:28) Input arguments:
(mag 27, 2021 23:44:28) basecode.MG true
(mag 27, 2021 23:44:28) root C:\Program Files\MATLAB\R2021a
(mag 27, 2021 23:44:28) libdir C:\Program Files\MATLAB\R2021a\uninstall
(mag 27, 2021 23:44:28) standalone true
(mag 27, 2021 23:44:56) java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at javax.swing.SwingWorker.get(SwingWorker.java:602)
at com.mathworks.wizard.worker.WorkerImpl.done(WorkerImpl.java:33)
at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.NullPointerException
at com.mathworks.install_impl.InstalledProductDataImpl.removeFilesAlsoInComponentsNotBeingUninstalled(Unknown Source)
at com.mathworks.install_impl.InstalledProductDataImpl.getTotalFileCount(Unknown Source)
at com.mathworks.install_impl.ProductInstallerImpl.getUninstallUnits(Unknown Source)
at com.mathworks.install_impl.InstallerImpl.getUninstallTotalUnits(Unknown Source)
at com.mathworks.install_impl.InstallerImpl.getUninstallTotalUnits(Unknown Source)
at com.mathworks.installwizard.model.UninstallTask.calculateTotalUnits(UninstallTask.java:31)
at com.mathworks.installwizard.model.AbstractBackgroundTask.calculateTotalUnits(AbstractBackgroundTask.java:43)
at com.mathworks.install_task.AbstractInstallTask.call(AbstractInstallTask.java:47)
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)
(mag 27, 2021 23:44:56) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at C:\Users\peppe\AppData\Local\Temp\mathworks_peppe.log
(mag 27, 2021 23:45:04) Exiting with status -2
(mag 27, 2021 23:45:04) End - Unsuccessful.
  2 Comments
Sophia Lai
Sophia Lai on 17 Oct 2022
Hello! I'm in the same situation, have you solved the problem and how? thx
Giuseppe
Giuseppe on 17 Oct 2022
Hi @Sophia Lai, I solved by uninstalling Matlab and installing it again.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 28 May 2021
You might need to Run As Administrator to uninstall using the flow you were using.
If I recall correctly, in Windows, error -2 indicates permission denied.
  4 Comments
Giuseppe
Giuseppe on 2 Jun 2021
@Walter Roberson I've tried to uninstall by running Matlab as admin but it does not work!
Walter Roberson
Walter Roberson on 2 Jun 2021
Sorry, I do not know. I recommend contacting Mathworks Support.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!