Can't resolve dependencies for Java library.
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm trying to build a *.jar File from some Matlab code. This code has dependencies that i added at "Files required for your library to run". But if i run the jar i get: "Can't find "MyCode.p"", but the file was added like other Libs that are working. What did i miss?
By the way: There are some yellow triangles at "Files required for your library to run", i couldn't find a meaning for it.
댓글 수: 0
답변 (1개)
Rohit Kudva
2015년 10월 21일
편집: Rohit Kudva
2015년 10월 21일
Hi Claas,
I understand that you have compiled your MATLAB function to a JAR file which you using in a Java driver application. But the dependency p-code file that you added during compilation in not being detected by your driver application
One way to check if the p-code file was successfully extracted is to check the MCR cache directory. For Windows OS, by default this directory will be [C:\Users\{username}\AppData\Local\Temp\{username}\mcrCache{mcrversion}]. If you have set the MCR_CACHE_ROOT environment variable, then the files would have been extracted in the directory pointed by that environment variable.
One possible reason for this issue is that starting MATLAB R2014a, you can't compile pure p-code file. If you compile p-code file, you also need to have the corresponding .m file in the same folder.
Regards,
Rohit
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!