Can't call Matlab from Java code with macOS Catalina
古いコメントを表示
Using this two macs:
1) macOS High Sierra 10.13.6, macBook pro 2011
2) macOS Catatalina 10.15.1, mac mini 2018
Both with Matlab 2019a, and Eclipse IDE for Java Developers 4.11.0
My project runs with JAVA SE -1.8 (is exactly the same java project, shared over dropbox)
In the mac with macOS Catalina, I get an error when I try to run a Java file even if it has NO reference to matlab engine (see picture "Code and error.png"):

But has Environment needed to connect to Matalb in the "Run configuration" (see picture "environment.png").

Running the same in the mac with High Sierra I have no problem.
The error I get is:
dyld: Symbol not found: _mecab_get_feature
Referenced from: /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
Expected in: /Applications/MATLAB_R2019a.app/bin/maci64/libmecab.dylib
in /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
3 件のコメント
Walter Roberson
2019 年 11 月 23 日
You should expect DYLD_LIBRARY_PATH to be ignored for anything installed under /Applications for sure in any release later than High Sierra, and you should not be suprised if it happens in High Sierra.
Apple does not list /Applications as protected, but in practice it is.
Felipe Arteaga
2020 年 8 月 7 日
編集済み: Felipe Arteaga
2020 年 8 月 7 日
Walter Roberson
2020 年 8 月 7 日
I don't think I know of any way to disable SIP for a particular application.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!