필터 지우기
필터 지우기

Can I delete the protobuf jar that comes with recent Matlab installations?

조회 수: 1 (최근 30일)
Matt
Matt 2022년 11월 17일
댓글: Matt 2023년 3월 1일
The protobuf jars included with Matlab installations starting with 2020a (and perhaps 2019b) have conflicting classes and effectively make it so that Matlab is incapable of parsing protobuf messages. I've submitted bug reports and posted a question about how to work around this issue. One possible work around is to delete the protobuf jar that is included with the installation or otherwise adjust the static Java path, which will allow my custom protobuf jar, added to the dynamic Java path, to take precedence. I've resisted that because among other things I don't want to break anything going on under the hood. My question here is: what effect will that have on internal operations? What internal functionality is that jar controlling and how might it change if I use my own jar? Thanks!

답변 (1개)

Muskan
Muskan 2023년 2월 23일
Hi Matt,
As per my understanding, I would suggest against deleting the protobuf jar that comes with MATLAB installations. The jar files contain the protobuf library, which allows MATLAB to read and write protobuf data.
You can experience problems using MATLAB features that rely on protobuf if you delete protobuf jar. Moreover, deleting system files without understanding their function may result in system instability.
Cheers,
Muskan
  댓글 수: 1
Matt
Matt 2023년 3월 1일
Hi Muskan,
The protobuf jars actually prevent MATLAB from reading and writing protobuf data; that is the entire problem I'm having. I submitted a bug report a while back with the details but I can't recall them at the moment, other than that there are conflicting versions with the classes within the included protobuf jar. If I recall, the guava version inside the included jar is very old (released sometime around 2010) and is incompatible with other classes within that jar, so if you have written protobuf parsing code for your own messages that relies on guava, it errors out. Since we need guava to parse our messages, we can't use versions of Matlab that have an included protobuf jar and are stuck on 2019a. I was hoping the issue had been addressed with newer versions of Matlab, but as of 2022a it was still an issue.
Thanks,
Matt

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by