- Right-click on the MATLAB icon.
- Select "Run as administrator".
Error in installing an apps
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a problem installing apps, the command windows gives me this:
com.mathworks.jmi.MatlabException: The specified path is invalid.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method) at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:265) at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120) at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1541) at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:197) at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:20) at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:7) at com.mathworks.appmanagement.AbstractAppManagementMatlabWorker.runOnMatlabThread(AbstractAppManagementMatlabWorker.java:21) at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79) at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:440)
What should I do?
0 commentaires
Réponses (1)
Sanchari
le 25 Juil 2024
Hello,
The error message being encountered indicates that MATLAB is having trouble with an invalid path while trying to install apps. This could be due to several reasons such as incorrect file paths, permissions issues, or corrupted files. Here are some basic steps to troubleshoot and resolve this issue:
1. Check the Path: Ensure that the path being used to install the app is correct and accessible. Double-check for any typos or incorrect directory separators.
2. Run MATLAB as Administrator: Sometimes, permission issues can cause problems. Try running MATLAB as an administrator:
3. Check MATLAB Path: Ensure that the MATLAB path is set correctly. One can reset the MATLAB path to its default state using the following command in the Command Window:
restoredefaultpath;
rehash toolboxcache;
savepath;
4. Check for Corrupted Files: If the app installation file is corrupted, it can cause issues. Try downloading the app again from the MATLAB File Exchange.
5. Clear Temporary Files: Clear MATLAB's temporary files and cache. One can do this by deleting the contents of the "prefdir" directory:
cd(prefdir);
delete('*.*');
6. Check MATLAB Version Compatibility: Ensure that the app to be installed is compatible with the version of MATLAB being used. Some apps may require specific versions or toolboxes.
7. Update MATLAB: Make sure the latest version of MATLAB is being used. Sometimes, updating MATLAB can resolve underlying issues. Consider checking for updates in MATLAB by going to: Home > Help > Check for Updates.
8. Reinstall MATLAB: If none of the above steps work, consider reinstalling MATLAB. This can resolve issues related to corrupted installations or missing files.
Hope this helps!
0 commentaires
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!