Code cant locate java code files

1 view (last 30 days)
Timothy Blalock
Timothy Blalock on 27 May 2020
Commented: Berk Özkarali on 18 Nov 2021
I am currently using this package (https://www.mathworks.com/matlabcentral/fileexchange/52210-vectorial-ray-based-diffraction-integral-vrbdi?s_tid=prof_contriblnk) which I unziped and is my current directory in matlab. I added a path to the java file with the addpath command, but am still getting the same errors as the other person who commented on the orginal posting. Below is a screenshot as well as the error messages, if you anyone has a suggestion please let me know. Thanks in advance.
Error using javaaddpath (line 48)
Too many input arguments.
Error in pctRunOnAll (line 50)
evalin('base', command);
Error in VRBDIpw (line 175)
eval(['pctRunOnAll javaaddpath ' folder '/java']);
Error in Example1 (line 90)
[E2x,E2y,E2z,H2x,H2y,H2z,I2,Xg,Yg,Zg,N2]=VRBDIpw(K,E,System,...
  1 Comment
Berk Özkarali
Berk Özkarali on 18 Nov 2021
Hi, probably you have found a solution to your problem. I have just replaced
eval(['pctRunOnAll javaaddpath ' folder '/java']);
with
eval(['pctRunOnAll javaaddpath(pwd)' ]);
for both VRDI and VDI and copy paste all the files inside java folder to current project directory.It seems like working for me.

Sign in to comment.

Answers (0)

Categories

Find more on Search Path in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!