java.langU​nsatisfied​LinkError problem

Hi all,
I'm using MATLAB 2015a in Linux Ubuntu 19.04.
My Matlab interface is a mess with the buttons of the interfaces.
Sometimes the editor buttons do not work, sometimes the buttons and clicking in the main matlab window do not work.
I get the following error when clicking in the Community button, for example:
Exception in thread "XPCOMMessageLoop" java.lang.UnsatisfiedLinkError: /usr/local/MATLAB/R2015a/sys/jxbrowser/glnxa64/xulrunner/xulrunner-linux-64/libxul.so: /lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToolkit.c(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToolkit.a(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.MozillaToolkit.initialize(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.AppShellXPCOMThread$b.run(Unknown Source)
Does anybody know how to solve such problem?

 採用された回答

Rouhollah Abdollahi
Rouhollah Abdollahi 2019 年 12 月 22 日

0 投票

Hi , Finally I could solve this problem using this link:
The solution is very simple, rename libfreetype.so.6 in the matlabroot/bin/glnxa64
sudo mv matlabroot/bin/glnxa64/libfreetype.so.6 matlabroot/bin/glnxa64/BK_libfreetype.so.6
I have tested it with 3 version of Matlab and works for them
Best
Rouhi

5 件のコメント

drummer
drummer 2020 年 1 月 29 日
Hi Rouhollah.
I actually upgraded my MATLAB version to 2019. Problems have stopped.
Thanks for the support.
Cheers
Abinash Dash
Abinash Dash 2020 年 6 月 6 日
Thanks. This solution worked for me on R2017a(Ubuntu Mate 20.04). Whenever I opened help browser, it showed help in a weird way and the libcairo error appeared on command window. I renamed the file as instructed in this answer . Now no error appears and help browser also shows up in nicely. Thanks again.
David Winthrop
David Winthrop 2020 年 10 月 21 日
編集済み: David Winthrop 2020 年 10 月 21 日
I tried this and MATLAB simply crashed when I typed doc at the command line. R2018 in Ubuntu 20.
The error message I was trying to fix is shown below. This is what happens when I type doc at the command line.
Exception in thread "XPCOMMessageLoop" java.lang.UnsatisfiedLinkError: /home/bigd/Documents/MATLAB/sys/jxbrowser/glnxa64/xulrunner/xulrunner-linux-64/libxul.so: /lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToolkit.c(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.impl.linux.LinuxMozillaToolkit.a(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.MozillaToolkit.initialize(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.AppShellXPCOMThread$b.run(Unknown Source)
Hyunjun Hyung
Hyunjun Hyung 2021 年 4 月 15 日
編集済み: Hyunjun Hyung 2021 年 4 月 15 日
Thanks, It works for me on R2017a(Ubuntu20.04).
Laurentiu NAVAL
Laurentiu NAVAL 2022 年 4 月 21 日
thanks, it worked on R2022a (archlinux)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by