MATLAB: Post-Installation Error
4 views (last 30 days)
Show older comments
Hi MATLAB Central,
I am trying to install MATLAB with several toolboxes for some computational biology, such as Simbiology, Statistics, Curve Fitting, and Bioinformatics. Trouble is, when the installer is at 97% completion and is performing post-installation tasks, the following error message occurs:
The application encountered an unexpected error and needs to close. More information can be found at log file here
The file mentioned gives the following abbreviated messages:
(Jul 06, 2011 13:27:14) Installing Product: MATLAB 7.12
(Jul 06, 2011 13:41:53) Installing Product: Bioinformatics Toolbox 3.8
(Jul 06, 2011 13:43:39) Installing Product: Curve Fitting Toolbox 3.1
(Jul 06, 2011 13:44:26) Installing Product: Global Optimization Toolbox 3.1.1
(Jul 06, 2011 13:44:52) Installing Product: Optimization Toolbox 6.0
(Jul 06, 2011 13:45:16) Installing Product: SimBiology 3.4
(Jul 06, 2011 13:48:21) Installing Product: Statistics Toolbox 7.5
(Jul 06, 2011 13:49:17) Installing Product: Symbolic Math Toolbox 5.6
(Jul 06, 2011 13:50:33) Registering Application
(Jul 06, 2011 13:50:33) setting HKEY_LOCAL_MACHINE\Software\MathWorks\MATLAB\7.12\MATLABROOT to C:\Program Files\MATLAB\R2011a-2
(Jul 06, 2011 13:50:33) setting HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\matlab.exe to C:\Program Files\MATLAB\R2011a-2\bin\win32\matlab.exe
(Jul 06, 2011 13:50:33) creating HKEY_CURRENT_USER\Software\MathWorks\MATLAB7.12
(Jul 06, 2011 13:50:33) Registering mwsamp.ocx
(Jul 06, 2011 13:50:33) Running [C:\WINDOWS\system32\regsvr32.exe, /s, "C:\Program Files\MATLAB\R2011a-2\toolbox\matlab\winfun\win32\mwsamp.ocx"]
(Jul 06, 2011 13:50:43) Registering mwsamp2.ocx
(Jul 06, 2011 13:50:43) Running [C:\WINDOWS\system32\regsvr32.exe, /s, "C:\Program Files\MATLAB\R2011a-2\toolbox\matlab\winfun\win32\mwsamp2.ocx"]
(Jul 06, 2011 13:50:43) registering assembly dotnetcli.dll in group MathWorks_Zone
(Jul 06, 2011 13:50:43) Calling getDotNetFrameworkLocation
(Jul 06, 2011 13:50:43) Unable to register .NET assembly C:\Program Files\MATLAB\R2011a-2\bin\win32\dotnetcli.dll in code group MathWorks_Zone
(Jul 06, 2011 13:50:44) Modify the system path if necessary.
(Jul 06, 2011 13:50:44) java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at javax.swing.SwingWorker.get(Unknown Source)
at com.mathworks.wizard.worker.WorkerImpl.done(WorkerImpl.java:33)
at javax.swing.SwingWorker$5.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at sun.swing.AccumulativeRunnable.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
at javax.swing.Timer.fireActionPerformed(Unknown Source)
at javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.mathworks.install.command.InsertPathIntoSystemPathCommand.getSplitPath(InsertPathIntoSystemPathCommand.java:287)
at com.mathworks.install.command.InsertPathIntoSystemPathCommand.elementAlreadyInPath(InsertPathIntoSystemPathCommand.java:277)
at com.mathworks.install.command.InsertPathIntoSystemPathCommand.addElementBeforeOlderAndSameProductVersions(InsertPathIntoSystemPathCommand.java:119)
at com.mathworks.install.command.InsertPathIntoSystemPathCommand.execute(InsertPathIntoSystemPathCommand.java:62)
at com.mathworks.install.InstallModule$1.installProducts(InstallModule.java:216)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:98)
at com.mathworks.installwizard.command.DWSInstaller.install(DWSInstaller.java:123)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:40)
at com.mathworks.installwizard.model.AbstractBackgroundTask.call(AbstractBackgroundTask.java:78)
at com.mathworks.installwizard.model.AbstractBackgroundTask.call(AbstractBackgroundTask.java:27)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Jul 06, 2011 13:50:44) Error: The application encountered an unexpected error and needs to close. More information can be found at C:\DOCUME~1\stephen\LOCALS~1\Temp\mathworks_stephen.log
0 Comments
Answers (2)
Veera Kanmani
on 20 Apr 2018
https://in.mathworks.com/matlabcentral/answers/339712-why-do-i-receive-the-error-the-application-encountered-an-unexpected-error-and-needs-to-close-you
0 Comments
Maria Concepcion Guirao Navarro
on 23 Apr 2020
Dear team,
I started the installation of Matlab yesterday. Everything was going ok , however it has not finished the post-installation tasks since yesterday but Matlab seems to keep doing tasks as it does not force the log out...
Could you please be so kind to help?
Thank you very much.
WBW
Maria.
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!