- vc_redist.x64.exe
- vc_redist.x86.exe
error Can't reload 'D:\MATLAB\R2015b\bin\win64\sltemplate.dll
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
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 Commenti
Risposte (1)
  Abhishek
 il 29 Mag 2025
        
      Modificato: Abhishek
 il 29 Mag 2025
  
      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 Commenti
Vedere anche
Categorie
				Scopri di più su Environment and Settings in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

