javaclasspath.txt in Matlab online
1 次查看(过去 30 天)
显示 更早的评论
I'm trying to add a jar to my static path in Matalb Online 2020a. I have the jar in the root of /MATLAB Drive. I have tried creating the file by
edit(fullfile(userpath,'javaclasspath.txt'))
and
edit(fullfile(prefsdir,'javaclasspath.txt'))
Neither seems to get loaded when I exit and start a new session. Suggestions?
0 个评论
回答(1 个)
Rajani Mishra
2020-5-28
There can be possibly two reasons for you not be able to see changes
1. File is not saved in the right location :- Save the javaclasspath.txt file in the startup folder or in the preferences folder. Type "pwd" at the command line for identifying the startup folder, and use "prefdir" for preferences folder
2. File is not being saved after the changes made :- After editing make sure the file is saved with all the changes, verify it by checking in that location
Refer this link for more information :- https://www.mathworks.com/help/matlab/matlab_external/static-path.html
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!