Registration Error: An error occured while trying to register MATLAB as OLE server.

9 views (last 30 days)
Whenever I try to install Matlab 2016b, the error like below occur.
"Registration Error: An error occured while trying to register MATLAB as OLE server."
And the error log like below.
(9월 26, 2019 09:46:47)Starting activation process.
(9월 26, 2019 09:46:47)Performing interactive activation.
(9월 26, 2019 09:46:48)MATHWORKS ACTIVATION IS STARTING UP.
(9월 26, 2019 09:46:48)com.mathworks.instutil.JNIException: java.lang.UnsatisfiedLinkError: Cant load library: C:\Program Files\MATLAB\R2016b\bin\win64\instutil.dll
java.lang.UnsatisfiedLinkError: Cant load library: C:\Program Files\MATLAB\R2016b\bin\win64\instutil.dll
com.mathworks.instutil.NativeUtility.loadNativeLibrary(NativeUtility.java:39)
com.mathworks.instutil.NativeUtility.(NativeUtility.java:24)
com.mathworks.instutil.system.HostIdProviderImpl.(HostIdProviderImpl.java:22)
com.mathworks.instutil.MachineInfo.(MachineInfo.java:22)
com.mathworks.activationclient.model.ActivationModelImpl.loadNativeLib(ActivationModelImpl.java:305)
com.mathworks.activationclient.model.ActivationModelImpl.getMachineInfo(ActivationModelImpl.java:283)
com.mathworks.activationclient.view.ApplicationViewImpl.getMachineInfo(ApplicationViewImpl.java:299)
com.mathworks.instwiz.InstWizard.highContrast(InstWizard.java:791)
com.mathworks.instwiz.InstWizard.setupGUI(InstWizard.java:192)
com.mathworks.activationclient.view.ApplicationViewImpl.setApplicationController(ApplicationViewImpl.java:116)
com.mathworks.activationclient.ActivationClientImpl.(ActivationClientImpl.java:199)
com.mathworks.activationclient.ActivationApplication.goInteractive(ActivationApplication.java:274)
com.mathworks.activationclient.ActivationApplication.go(ActivationApplication.java:262)
com.mathworks.activationclient.ActivationApplication.main(ActivationApplication.java:174)
com.mathworks.professionalinstaller.CommercialMatlabInstallConfiguration.activateInstallation(CommercialMatlabInstallConfiguration.java:48)
com.mathworks.installwizard.command.AbstractCommandStepFactory$36$1.run(AbstractCommandStepFactory.java:964)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
(9월 26, 2019 09:46:48)com.mathworks.instutil.JNIException: java.lang.UnsatisfiedLinkError: Cant load library: C:\Program Files\MATLAB\R2016b\bin\win64\instutil.dll
java.lang.UnsatisfiedLinkError: Cant load library: C:\Program Files\MATLAB\R2016b\bin\win64\instutil.dll
com.mathworks.instutil.NativeUtility.loadNativeLibrary(NativeUtility.java:39)
com.mathworks.instutil.NativeUtility.(NativeUtility.java:24)
com.mathworks.instutil.system.HostIdProviderImpl.(HostIdProviderImpl.java:22)
com.mathworks.instutil.MachineInfo.(MachineInfo.java:22)
com.mathworks.activationclient.model.ActivationModelImpl.loadNativeLib(ActivationModelImpl.java:305)
com.mathworks.activationclient.model.ActivationModelImpl.getMachineInfo(ActivationModelImpl.java:283)
com.mathworks.activationclient.view.ApplicationViewImpl.getMachineInfo(ApplicationViewImpl.java:299)
com.mathworks.activationclient.view.ApplicationViewImpl.showGUI(ApplicationViewImpl.java:121)
com.mathworks.activationclient.controller.ApplicationControllerImpl.start(ApplicationControllerImpl.java:116)
com.mathworks.activationclient.ActivationClientImpl.start(ActivationClientImpl.java:205)
com.mathworks.activationclient.ActivationApplication.goInteractive(ActivationApplication.java:276)
com.mathworks.activationclient.ActivationApplication.go(ActivationApplication.java:262)
com.mathworks.activationclient.ActivationApplication.main(ActivationApplication.java:174)
com.mathworks.professionalinstaller.CommercialMatlabInstallConfiguration.activateInstallation(CommercialMatlabInstallConfiguration.java:48)
com.mathworks.installwizard.command.AbstractCommandStepFactory$36$1.run(AbstractCommandStepFactory.java:964)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
Please give me some advice. I couldn'g do my work because of this problem.
I tried a lot of methods to handle this, but there were no solution.
Thank you.

Answers (1)

Krishna Adi
Krishna Adi on 20 Jan 2021
Edited: Krishna Adi on 20 Jan 2021
This error can occur if the Visual Studio 2005 Runtime Libraries are not installed on the machine. This can occur if:
- The Windows Installer on the machine is older than version 3.1
- The user running MATLAB does not have administrative rights
- MATLAB is not started with the matlab.bat file from $MATLAB\bin (where $MATLAB is the installation folder for MATLAB)
To resolve this error, run the following executable file with administrator rights:
$MATLAB\bin\win32\vcredist_x86.exe (for 32-bit MATLAB)
$MATLAB\bin\win64\vcredist_x64.exe (for 64-bit MATLAB)
You should see the Visual Studio 2005 Runtime library installer appear and complete the installation.
If you see the following errors:
MS visual C++ 2005 redistributable:
Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor.
Or
VCRT_check.exe failed: MFC80U.DLL library could not be located.
You will need to update the Windows Installer. For more details see the Bug Report here:
If this does not solve the problem, follow the steps in the documentation in section "External Interfaces" to manually register MATLAB using the 'matlab /regserver' command (Step: "Register MATLAB as a COM Server").
Refer the below link for the same:
https://in.mathworks.com/help/matlab/matlab_external/register-matlab-as-automation-server.html

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!