Why do I get a com.mathworks.html.BrowserCreationException error when running certain MATLAB commands on Linux?
21 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2019-6-20
回答: MathWorks Support Team
2019-7-2
I get a Java error such as the following every time I call 'uisetcolor', 'webmap', or any other commands that use the JxBrowser on my Linux machine. It always seems to be a "com.mathworks.html.BrowserCreationException" error. How can I fix this?
e.g.
>> uisetcolor
Error using matlab.ui.internal.dialog.WebColorChooser/show (line 74)
Java exception occurred:
com.mathworks.html.BrowserCreationException: com.mathworks.html.BrowserCreationException: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process
exited. Exit code: 127
at com.mathworks.mlwidgets.html.LightweightChromiumBrowserBuilder.buildBrowser(LightweightChromiumBrowserBuilder.java:52)
at com.mathworks.mlwidgets.html.LightweightBrowserBuilder.buildBrowser(LightweightBrowserBuilder.java:189)
Caused by: com.mathworks.html.BrowserCreationException: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 127
at com.mathworks.html.jxbrowser.chromium.LightweightChromiumBrowser.<init>(LightweightChromiumBrowser.java:35)
at com.mathworks.mlwidgets.html.LightweightChromiumBrowserBuilder.buildBrowser(LightweightChromiumBrowserBuilder.java:40)
... 1 more
Caused by: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 127
at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Error in uisetcolor_helper>showDialog (line 67)
ccDialog.show;
Error in uisetcolor_helper (line 12)
selectedColor = showDialog(ccDialog);
Error in uisetcolor (line 37)
selectedColor = uisetcolor_helper(varargin{:});
采纳的回答
MathWorks Support Team
2019-8-13
1) Please make sure you are using MATLAB on a supported version of Linux, as “minimal” or “core” installations of Linux may lack the necessary software packages required to run MATLAB.
2) Please try installing any missing JxBrowser dependencies. You can see any missing dependencies by running `ldd` on the 'jxbrowser-chromium' executable that ships with MATLAB.
e.g.
>> cd(fullfile(matlabroot,'sys','jxbrowser-chromium','glnxa64','chromium'))
>> !ldd jxbrowser-chromium | grep -i found
libgconf-2.so.4 => not found
This example indicates that we are missing the "libgconf-2-4" dependency, which can be installed with a package manager such as `apt`.
NOTE: The exact location of the 'jxbrowser-chromium' executable may be different depending on the version of MATLAB you are using. The example above is from R2019a.
See the link below for another example of using `ldd` and installing dependencies.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!