- vc_redist.x64.exe
- vc_redist.x86.exe
error Can't reload 'D:\MATLAB\R2015b\bin\win64\sltemplate.dll
3 次查看(过去 30 天)
显示 更早的评论
Can't reload 'C:\Program Files\MATLAB\R2018b\bin\win64\sltemplate.dll'
>> set path
Error using set
Invalid handle
Can't reload 'C:\Program Files\MATLAB\R2018b\bin\win64\sltemplate.dll'
Exception in thread "Thread-23": java.lang.UnsatisfiedLinkError: C:\Program Files\MATLAB\R2018b\bin\win64\nativesimulink.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.mathworks.toolbox.simulink.desktopintegration.MDLFileInfoReader.loadNativeLibrary(MDLFileInfoReader.java:87)
at com.mathworks.toolbox.simulink.desktopintegration.MdlFileTemplate.getDefaultFileName(MdlFileTemplate.java:55)
at com.mathworks.mlwidgets.explorer.util.UiFileSystemUtils$3.run(UiFileSystemUtils.java:171)
at java.lang.Thread.run(Unknown Source)
Can't reload 'C:\Program Files\MATLAB\R2018b\bin\win64\sltemplate.dll'
0 个评论
回答(1 个)
Abhishek
2025-5-29
编辑:Abhishek
2025-5-29
The error that you are seeing typically occurs when MATLAB cannot load one or more native libraries due to missing system dependencies—most commonly, required Visual C++ runtime libraries.
Here are a few steps that can help resolve the issue:
1. Install Visual C++ Redistributables (Both x64 and x86)
Even if you are on a 64-bit system, you will need both versions:
Microsoft Visual C++ Redistributable for Visual Studio, be sure to install both:
After installation, restart your machine and try launching MATLAB again.
2. Check Your PATH Environment Variable
Make sure MATLAB's binary path is included in your system's PATH:
C:\Program Files\MATLAB\R2018b\bin\win64
Verify this by running in MATLAB:
getenv('PATH')
If it is missing, add it by going to System Properties then to Environment Variables.
3. Run MATLAB as Administrator
Sometimes, access issues prevent DLLs from loading properly. Try right clicking the MATLAB shortcut and selecting "Run as administrator."
This should help fix the issue.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!