How to replace google-collect.jar with the newer version guava.jar

2 ビュー (過去 30 日間)
Sergey Fein
Sergey Fein 2013 年 7 月 31 日
回答済み: raym 2021 年 2 月 13 日
I'm running MATLAB 2012b and using a java package which depends on the newer version of google collections, i.e. guava.jar version 13.0.1
However, since MATLAB by default loads an earlier (now deprecated) version of google collections from $matlabroot/java/jarext/google-collect.jar, it causes runtime errors when my java package is called (since it sees an older version and can't find newer methods added in guava 13.0.1).
How can I configure MATLAB not to load google-collect but instead load a newer version of the library? Generally speaking, how can I tell MATLAB to use a different version of a java package from the default installation?

回答 (1 件)

raym
raym 2021 年 2 月 13 日
I have the same error with you . Have you solved?

カテゴリ

Help Center および File ExchangeCall Java from MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by